summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Sander Kleijwegt <sander@myowndomain.nl>2015-08-28 22:15:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-28 16:15:25 -0700
commit67abcd0c2c2e32c4f88762dbf2eef079ca7dc8f9 (patch)
tree79723e0537067b405a6d09920b2aa3b7f9cd1ead /qt-ui
parent10d0604297ab70f7da5017bb754f73016b2efeb7 (diff)
downloadsubsurface-67abcd0c2c2e32c4f88762dbf2eef079ca7dc8f9.tar.gz
Fix mouse clicks on divesite completer.
Use clicked instead of activated signal on the completerList to handle the selection of a divesite. Signed-off-by: Sander Kleijwegt <sander@myowndomain.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 3885cd56c..346fdc6a9 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -72,7 +72,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
connect(locationManagementEditHelper, &LocationManagementEditHelper::setLineEditText,
ui.location, &QLineEdit::setText);
completerListview->installEventFilter(locationManagementEditHelper);
- connect(completerListview, &QAbstractItemView::activated,
+ connect(completerListview, &QAbstractItemView::clicked,
locationManagementEditHelper, &LocationManagementEditHelper::handleActivation);
ui.location->setCompleter(completer);