diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-01 13:45:43 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 10:12:16 -0700 |
commit | 9fcd6b2658b1ea43ee2670b1f915b2b548caa153 (patch) | |
tree | 326f4bca255e65552ff91cfb20ed8295047fd291 /qt-ui | |
parent | 83c5ab58718e057472b63b97c94d52d3b1b9e83e (diff) | |
download | subsurface-9fcd6b2658b1ea43ee2670b1f915b2b548caa153.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/globe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |