stringinput: Restore old value after input was cancelled in CExtendedInput

Origin commit data
------------------
Commit: ad4f979b4b
Author: Gaucho316 <Gaucho316@hotmail.com>
Date: 2013-06-14 (Fri, 14 Jun 2013)

Origin message was:
------------------
- stringinput: Restore old value after input was cancelled in CExtendedInput
This commit is contained in:
Gaucho316
2013-06-14 13:08:56 +02:00
committed by vanhofen
parent f2d958d442
commit b5412a56b4

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 )
{
loop = false;
strcpy(value, oldval);
loop=false;
if(cancel != NULL)
*cancel = true;
res = menu_return::RETURN_EXIT_ALL;
}
}