- stringinput: Change value string only if OK was pressed

This commit is contained in:
Christian Schuett
2013-06-14 13:06:38 +02:00
committed by svenhoefer
parent 1d3ec8c7af
commit e9be248b29

View File

@@ -522,7 +522,7 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
}
value[size]=0;
if (valueString != NULL)
if ( (valueString != NULL) && (msg == CRCInput::RC_ok) )
{
*valueString = value;
}