GUI: Remove unnecessary goto in PredictiveDialog code.
This commit is contained in:
parent
6ed2d15c44
commit
a7ee1dc42b
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue