From 023fedef48dd3c1fa40ddf2247900bc65ad91671 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 2 Oct 2013 00:15:15 +0200 Subject: GUI: Do not return current input on cancel in PredictiveDialog. Returning the currently displayed input when you click cancel is confusing behavior in my eyes. --- gui/predictivedialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui') diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp index 41f6b103c4..ef94ec6d50 100644 --- a/gui/predictivedialog.cpp +++ b/gui/predictivedialog.cpp @@ -421,6 +421,9 @@ void PredictiveDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 d case kCancelCmd: saveUserDictToFile(); close(); + // When we cancel the dialog no result should be returned. Thus, we + // will invalidate any result here. + _predictiveResult[0] = 0; return; case kOkCmd: _currBtn = kOkAct; -- cgit v1.2.3