diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 19:17:32 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 19:17:32 -0800 |
commit | 9295b3aa3742ea3af4427de831af58ed2a268c9b (patch) | |
tree | 6af21d7fdda3158db8b1db50de847b2ed4b3e491 /desktop-widgets/mainwindow.cpp | |
parent | ca5b751610e1928eb1211622035390bd38dd32bf (diff) | |
download | subsurface-9295b3aa3742ea3af4427de831af58ed2a268c9b.tar.gz |
Add menu entry for creating GPS location
And disable it if there is no satellite based location service (but see
the comment in the previous commit - this doesn't appear to work
reliably).
Nothing happens when you use the menu entry. This just allows us to hook
this up later.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 732425ea7..11d5fb153 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -206,6 +206,9 @@ MainWindow::MainWindow() : QMainWindow(), #endif GpsLocation *locationProvider = new GpsLocation(&report_message, this); + if (!locationProvider->hasLocationsSource()) { + ui.menuFile->removeAction(ui.add_GPS_location_here); + } ui.mainErrorMessage->hide(); graphics()->setEmptyState(); initialUiSetup(); |