diff options
| author | Johannes Schickel | 2013-10-02 00:15:15 +0200 | 
|---|---|---|
| committer | Johannes Schickel | 2013-10-02 00:16:59 +0200 | 
| commit | 023fedef48dd3c1fa40ddf2247900bc65ad91671 (patch) | |
| tree | 5728f4a93c2077284dedd46d9bb691f3dd354d08 | |
| parent | 225a82355504d2c04d1a6b88b6627c445b12e329 (diff) | |
| download | scummvm-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.
| -rw-r--r-- | gui/predictivedialog.cpp | 3 | 
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; | 
