From f2d958d442ad0e20f97fa6c807bb3b47d1dd9b37 Mon Sep 17 00:00:00 2001 From: Gaucho316 Date: Fri, 14 Jun 2013 13:06:38 +0200 Subject: [PATCH] stringinput: Change value string only if OK was pressed Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e9be248b29ba4e35f5caa020e3ae6ce23cb2e65c Author: Gaucho316 Date: 2013-06-14 (Fri, 14 Jun 2013) Origin message was: ------------------ - 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; }