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(); diff --git a/desktop-widgets/mainwindow.ui b/desktop-widgets/mainwindow.ui index c62e1df7f..724c83657 100644 --- a/desktop-widgets/mainwindow.ui +++ b/desktop-widgets/mainwindow.ui @@ -92,6 +92,8 @@ + + @@ -738,6 +740,11 @@ Facebook + + + Add GPS location here + +