- stringinput: Restore old value after input was cancelled in CExtendedInput

This commit is contained in:
Christian Schuett
2013-06-14 13:08:56 +02:00
committed by svenhoefer
parent e9be248b29
commit ad4f979b4b

View File

@@ -268,7 +268,10 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
}
else if ( CNeutrinoApp::getInstance()->handleMsg( msg, data ) & messages_return::cancel_all )
{
strcpy(value, oldval);
loop=false;
if(cancel != NULL)
*cancel = true;
res = menu_return::RETURN_EXIT_ALL;
}
}