summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar krisalpha <choprakrishan61@gmail.com>2016-01-20 01:05:52 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-19 13:06:38 -0800
commitb42dd941c1d421122b6e0522bcbf82d80cafac4b (patch)
tree6984ad2d44b2378872556248ed38b28cc49974ee /desktop-widgets/locationinformation.cpp
parent15a014105bc0a79552620965ac888858cdecd29a (diff)
downloadsubsurface-b42dd941c1d421122b6e0522bcbf82d80cafac4b.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>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-rw-r--r--desktop-widgets/locationinformation.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
}