stringinput: Change value string only if OK was pressed

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

Origin message was:
------------------
- stringinput: Change value string only if OK was pressed
This commit is contained in:
Gaucho316
2013-06-14 13:06:38 +02:00
committed by vanhofen
parent 588750c443
commit f2d958d442

View File

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