From 2a4ce01322b3de53afede876243bdf46f62e52a7 Mon Sep 17 00:00:00 2001 From: krisalpha Date: Wed, 20 Jan 2016 01:05:52 +0530 Subject: [PATCH] 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 --- qt-ui/locationinformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 8e40e1b53..96fac9d32 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -570,7 +570,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)); } }