stringinput: Restore old value after input was cancelled in CExtendedInput

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

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Christian Schuett
2013-06-14 13:08:56 +02:00
committed by vanhofen
parent a9f059c05d
commit 43d4d0483c

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;
}
}