GUI: Add TODO/FIXME to PredictiveDialog::handleTickle.

This commit is contained in:
Johannes Schickel 2012-03-29 02:12:32 +02:00
parent a7ee1dc42b
commit 388e04bb6d

View file

@ -534,6 +534,10 @@ void PredictiveDialog::processBtnActive(ButtonId button) {
} }
void PredictiveDialog::handleTickle() { void PredictiveDialog::handleTickle() {
// TODO/FIXME: This code does not seem to make any sense. It is only
// triggered when _lastTime is zero and sets _lastTime to zero again
// under some condition. This should really be a nop. Probably this
// code intends to check "_lastTime" instead of "!_lastTime".
if (!_lastTime) { if (!_lastTime) {
if ((_curTime - _lastTime) > kRepeatDelay) { if ((_curTime - _lastTime) > kRepeatDelay) {
_lastTime = 0; _lastTime = 0;