summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp3
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();