diff --git a/Todo.txt b/Todo.txt index c12008370..aa3b88f95 100644 --- a/Todo.txt +++ b/Todo.txt @@ -70,9 +70,6 @@ Stephen Anthony at stephena@users.sourceforge.net. * More support for copy and paste. - * Fix Props.cxx (or GameInfoDialog) to properly deal with quotes and - backslashes in strings meant to be saved to the properties file. - * Add support for uncommon controllers (KidVid, Lightgun, etc) * Fix "Tron Man Picture Cart" (32K Tigervision bankswitching) issue diff --git a/src/gui/EditableWidget.cxx b/src/gui/EditableWidget.cxx index d7c915cb4..78925855b 100644 --- a/src/gui/EditableWidget.cxx +++ b/src/gui/EditableWidget.cxx @@ -77,7 +77,7 @@ void EditableWidget::setEditable(bool editable) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool EditableWidget::tryInsertChar(char c, int pos) { - if (isprint(c)) + if (isprint(c) && c != '\"' && c != '\\') { _editString.insert(pos, 1, c); return true;