mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
83c5ab5871
commit
9fcd6b2658
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void GlobeGPS::contextMenuEvent(QContextMenuEvent *ev)
|
||||||
void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
|
void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
|
||||||
{
|
{
|
||||||
// don't mess with the selection while the user is editing a dive
|
// 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;
|
return;
|
||||||
|
|
||||||
GeoDataCoordinates here(lon, lat, unit);
|
GeoDataCoordinates here(lon, lat, unit);
|
||||||
|
|
Loading…
Add table
Reference in a new issue