From 76e61bd8d9baea008628bf5b176cf8f0b664e78f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 17 Jul 2015 14:08:01 -0300 Subject: Make sure we don't pass the wrong info We were returning false here which meant that we were overriding the information with the wrong value later. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/locationinformation.cpp') diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 2e296450d..db6816ea5 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -242,8 +242,9 @@ bool LocationManagementEditHelper::eventFilter(QObject *obj, QEvent *ev) QKeyEvent *keyEv = (QKeyEvent*) ev; if(keyEv->key() == Qt::Key_Space || keyEv->key() == Qt::Key_Return) { handleActivation(view->currentIndex()); + view->hide(); + return true; } - } return false; } -- cgit v1.2.3-70-g09d2