aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-23 16:27:44 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 14:15:49 -0700
commita9642d57518a7132648ea70be35bfd0af282fadc (patch)
tree34911dcd16ef260613f22250dc8c38a0827b675f /qt-ui/locationinformation.cpp
parentd95856d3b272671fe9db008605ea84b27195f46b (diff)
downloadsubsurface-a9642d57518a7132648ea70be35bfd0af282fadc.tar.gz
Do not display popup with modifiers
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, 5 insertions, 1 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 8e08a60be..6e6db0b34 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -469,6 +469,9 @@ void DiveLocationLineEdit::setTemporaryDiveSiteName(const QString& s)
model->setData(i1, i1_name );
proxy->invalidate();
+ fixPopupPosition();
+ if (!view->isVisible())
+ view->show();
}
void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
@@ -482,8 +485,9 @@ void DiveLocationLineEdit::keyPressEvent(QKeyEvent *ev)
if(ev->key() != Qt::Key_Up && ev->key() != Qt::Key_Down) {
currType = NEW_DIVE_SITE;
currUuid = RECENTLY_ADDED_DIVESITE;
+ } else {
+ showPopup();
}
- showPopup();
} else if (ev->key() == Qt::Key_Escape) {
view->hide();
}