From e9be248b29ba4e35f5caa020e3ae6ce23cb2e65c Mon Sep 17 00:00:00 2001 From: Christian Schuett Date: Fri, 14 Jun 2013 13:06:38 +0200 Subject: [PATCH] - stringinput: Change value string only if OK was pressed --- src/gui/widget/stringinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }