aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar krisalpha <choprakrishan61@gmail.com>2016-01-20 01:05:52 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-26 09:18:49 +0100
commit2a4ce01322b3de53afede876243bdf46f62e52a7 (patch)
tree21c76532d65cd057a09a4ddf0f10eb23b2454eab
parenta01e4fefb419ad0b4cfc64a7d1759a06f08f4a3b (diff)
downloadsubsurface-2a4ce01322b3de53afede876243bdf46f62e52a7.tar.gz
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>
-rw-r--r--qt-ui/locationinformation.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
}