aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-03-29 02:08:09 +0200
committerJohannes Schickel2012-03-29 02:08:09 +0200
commita7ee1dc42bc288a3748014d9e2c3ec57f61eb079 (patch)
tree3f55c1760a152cacad4589eb227828fc9e6465d1 /gui/predictivedialog.cpp
parent6ed2d15c44ce7ccea005e02f0a8744b2fa9cc807 (diff)
downloadscummvm-rg350-a7ee1dc42bc288a3748014d9e2c3ec57f61eb079.tar.gz
scummvm-rg350-a7ee1dc42bc288a3748014d9e2c3ec57f61eb079.tar.bz2
scummvm-rg350-a7ee1dc42bc288a3748014d9e2c3ec57f61eb079.zip
GUI: Remove unnecessary goto in PredictiveDialog code.
Diffstat (limited to 'gui/predictivedialog.cpp')
-rw-r--r--gui/predictivedialog.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp
index c5c4331ab3..4ce2a51979 100644
--- a/gui/predictivedialog.cpp
+++ b/gui/predictivedialog.cpp
@@ -498,8 +498,6 @@ void PredictiveDialog::processBtnActive(ButtonId button) {
// bring MRU word at the top of the list when ok'ed out of the dialog
if (_mode == kModePre && _unitedDict.dictActLine && _numMatchingWords > 1 && _wordNumber != 0)
bringWordtoTop(_unitedDict.dictActLine, _wordNumber);
-
- goto press;
} else if (button == kModeAct) { // Mode
_mode++;
_addBtn->setEnabled(false);
@@ -526,12 +524,9 @@ void PredictiveDialog::processBtnActive(ButtonId button) {
_lastTime = 0;
_lastPressBtn = kNoAct;
_curTime = 0;
- } else {
- goto press;
}
}
-press:
pressEditText();
if (button == kOkAct)