summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-21 17:22:31 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 14:15:22 -0700
commitdd21ab6b11af632b7277c40d96a0fa1c8632acaa (patch)
treecff137d94909a1a34319aada78e504d10cf534e0 /qt-ui/locationinformation.cpp
parent317c3de91d6218244c58cee414d11e9f90c100ff (diff)
downloadsubsurface-dd21ab6b11af632b7277c40d96a0fa1c8632acaa.tar.gz
Fix correct size of the popup
Correct the popup visibility. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 111257dfc..68096db84 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -508,16 +508,14 @@ void DiveLocationLineEdit::setTemporaryDiveSiteName(const QString& s)
void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
{
qDebug() << "Pressing key" << ev->key();
+ QLineEdit::keyPressEvent(ev);
if(ev->key() != Qt::Key_Left &&
ev->key() != Qt::Key_Right &&
ev->key() != Qt::Key_Escape &&
- ev->key() != Qt::Key_Return &&
- !view->isVisible()) {
+ ev->key() != Qt::Key_Return ) {
showPopup();
} else if (ev->key() == Qt::Key_Escape) {
view->hide();
- } else {
- QLineEdit::keyPressEvent(ev);
}
}