aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2013-10-02 00:15:15 +0200
committerJohannes Schickel2013-10-02 00:16:59 +0200
commit023fedef48dd3c1fa40ddf2247900bc65ad91671 (patch)
tree5728f4a93c2077284dedd46d9bb691f3dd354d08 /gui
parent225a82355504d2c04d1a6b88b6627c445b12e329 (diff)
downloadscummvm-rg350-023fedef48dd3c1fa40ddf2247900bc65ad91671.tar.gz
scummvm-rg350-023fedef48dd3c1fa40ddf2247900bc65ad91671.tar.bz2
scummvm-rg350-023fedef48dd3c1fa40ddf2247900bc65ad91671.zip
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.
Diffstat (limited to 'gui')
-rw-r--r--gui/predictivedialog.cpp3
1 files changed, 3 insertions, 0 deletions
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;