Fix UI issue with location management

The index in the fixpopup function was incorrect which caused the user to
need TWO cursor down presses to move to the second element. I changed the
index value so the user now needs only one key press to traverse up/dowm.

Fixes #954

Signed-off-by: krishan Chopra <choprakrishan61@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
krisalpha 2016-01-20 01:05:52 +05:30 committed by Dirk Hohndel
parent 15a014105b
commit b42dd941c1

View file

@ -569,7 +569,7 @@ void DiveLocationLineEdit::fixPopupPosition()
view->setGeometry(pos.x(), pos.y(), w, h);
if (!view->currentIndex().isValid() && view->model()->rowCount()) {
view->setCurrentIndex(view->model()->index(0, 0));
view->setCurrentIndex(view->model()->index(0, 1));
}
}