Disallow backslash and double-quote in all editable input fields. There's

no need for these characters to ever be present, and having them there
really causes problems in parsing that would be best avoided.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1777 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2009-06-18 13:54:34 +00:00
parent 3aed9378a8
commit bf85802526
2 changed files with 1 additions and 4 deletions

View File

@ -70,9 +70,6 @@ Stephen Anthony at stephena@users.sourceforge.net.
* More support for copy and paste. * 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) * Add support for uncommon controllers (KidVid, Lightgun, etc)
* Fix "Tron Man Picture Cart" (32K Tigervision bankswitching) issue * Fix "Tron Man Picture Cart" (32K Tigervision bankswitching) issue

View File

@ -77,7 +77,7 @@ void EditableWidget::setEditable(bool editable)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool EditableWidget::tryInsertChar(char c, int pos) bool EditableWidget::tryInsertChar(char c, int pos)
{ {
if (isprint(c)) if (isprint(c) && c != '\"' && c != '\\')
{ {
_editString.insert(pos, 1, c); _editString.insert(pos, 1, c);
return true; return true;