summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-19 17:32:17 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-19 17:38:17 +1200
commitdf46b85ee1cc7a33fe35e69c19345a59c966fa41 (patch)
tree88951ed5fdb90ca23db73afe181a0279e79fbf2a /qt-ui/mainwindow.cpp
parent83018619d6f22efda3a98742598670d7bd76482b (diff)
downloadsubsurface-df46b85ee1cc7a33fe35e69c19345a59c966fa41.tar.gz
Don't just change the location when double clicking on the globe
Instead be consistent with other parts of the code and put us in editing mode so the user can accept / reject the change. See #800 Fixes #801 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 8835bb8e3..5d5a442f4 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -96,6 +96,8 @@ MainWindow::MainWindow() : QMainWindow(),
#ifdef NO_MARBLE
ui.globePane->hide();
ui.menuView->removeAction(ui.actionViewGlobe);
+#else
+ connect(ui.globe, SIGNAL(coordinatesChanged()), ui.InfoWidget, SLOT(updateGpsCoordinates()));
#endif
#ifdef NO_USERMANUAL
ui.menuHelp->removeAction(ui.actionUserManual);