From 67abcd0c2c2e32c4f88762dbf2eef079ca7dc8f9 Mon Sep 17 00:00:00 2001 From: Sander Kleijwegt Date: Fri, 28 Aug 2015 22:15:23 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/maintab.cpp') 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); -- cgit v1.2.3-70-g09d2