aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-07-17 14:08:01 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-17 10:27:52 -0700
commit76e61bd8d9baea008628bf5b176cf8f0b664e78f (patch)
treec890833cd687c5e9c5fc94ed53f889cf79c02e86
parent392973dbe4f15bb1e765a32e6573dc1466bedb0c (diff)
downloadsubsurface-76e61bd8d9baea008628bf5b176cf8f0b664e78f.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/locationinformation.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}