From b42dd941c1d421122b6e0522bcbf82d80cafac4b Mon Sep 17 00:00:00 2001 From: krisalpha Date: Wed, 20 Jan 2016 01:05:52 +0530 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/locationinformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index f23e5e863..2501ad7fb 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -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)); } } -- cgit v1.2.3-70-g09d2