diff options
-rw-r--r-- | qt-ui/locationinformation.cpp | 3 | ||||
-rw-r--r-- | qt-ui/modeldelegates.cpp | 7 |
2 files changed, 2 insertions, 8 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; } diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 848c66fa8..91b6c6efd 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -510,13 +510,6 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem if (index.row() < 2) { diveSiteName = index.data().toString(); bottomText = index.data(Qt::ToolTipRole).toString(); -#ifndef NO_MARBLE - if ((option.state & QStyle::State_HasFocus)) { - // we call this even if the displayed dive site has no GPS data - // so that the globe appropriately zooms out... - MainWindow::instance()->globe()->centerOnDiveSite(&displayed_dive_site); - } -#endif goto print_part; } |