diff options
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(); |