diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 3 | ||||
-rw-r--r-- | desktop-widgets/mainwindow.ui | 7 |
2 files changed, 10 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(); 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 @@ <addaction name="copy"/> <addaction name="paste"/> <addaction name="separator"/> + <addaction name="add_GPS_location_here"/> + <addaction name="separator"/> <addaction name="actionRenumber"/> <addaction name="actionAutoGroup"/> <addaction name="separator"/> @@ -738,6 +740,11 @@ <string>Facebook</string> </property> </action> + <action name="add_GPS_location_here"> + <property name="text"> + <string>Add GPS location here</string> + </property> + </action> </widget> <customwidgets> <customwidget> |