mirror of https://github.com/stella-emu/stella.git
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:
parent
3aed9378a8
commit
bf85802526
3
Todo.txt
3
Todo.txt
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue