diff --git a/src/gui/widget/stringinput.cpp b/src/gui/widget/stringinput.cpp index 779a84ec7..9220b5f61 100644 --- a/src/gui/widget/stringinput.cpp +++ b/src/gui/widget/stringinput.cpp @@ -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; }