GUI: Remove unnecessary goto in PredictiveDialog code.

This commit is contained in:
Johannes Schickel 2012-03-29 02:08:09 +02:00
parent 6ed2d15c44
commit a7ee1dc42b

View file

@ -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 // 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) if (_mode == kModePre && _unitedDict.dictActLine && _numMatchingWords > 1 && _wordNumber != 0)
bringWordtoTop(_unitedDict.dictActLine, _wordNumber); bringWordtoTop(_unitedDict.dictActLine, _wordNumber);
goto press;
} else if (button == kModeAct) { // Mode } else if (button == kModeAct) { // Mode
_mode++; _mode++;
_addBtn->setEnabled(false); _addBtn->setEnabled(false);
@ -526,12 +524,9 @@ void PredictiveDialog::processBtnActive(ButtonId button) {
_lastTime = 0; _lastTime = 0;
_lastPressBtn = kNoAct; _lastPressBtn = kNoAct;
_curTime = 0; _curTime = 0;
} else {
goto press;
} }
} }
press:
pressEditText(); pressEditText();
if (button == kOkAct) if (button == kOkAct)