summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/globe.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index b9bbf2dde..18bdc92c3 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -119,6 +119,7 @@ void GlobeGPS::contextMenuEvent(QContextMenuEvent *ev)
QMenu m;
QAction *a = m.addAction(tr("Edit selected dive locations"), this, SLOT(prepareForGetDiveCoordinates()));
a->setData(QVariant::fromValue<void *>(&m));
+ a->setEnabled(current_dive);
m.exec(ev->globalPos());
}