From 9fcd6b2658b1ea43ee2670b1f915b2b548caa153 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 1 May 2014 13:45:43 -0300 Subject: A better guard for 'dive being editted' Mouse activity on the globe should not select dives when one or more dives are being edited. This improves the detection of that state. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index b8a556a50..9f4ac62b9 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -109,7 +109,7 @@ void GlobeGPS::contextMenuEvent(QContextMenuEvent *ev) void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit) { // don't mess with the selection while the user is editing a dive - if (MainWindow::instance()->information()->isEditing()) + if (MainWindow::instance()->information()->isEditing() || messageWidget->isVisible()) return; GeoDataCoordinates here(lon, lat, unit); -- cgit v1.2.3-70-g09d2