Commit ab0469f6 authored by John Tapsell's avatar John Tapsell

Hide Mavgen, GoogleEarth, and 3D local view menu options when support is not compiled in

parent ff7a653f
...@@ -596,7 +596,7 @@ void MainWindow::buildCommonWidgets() ...@@ -596,7 +596,7 @@ void MainWindow::buildCommonWidgets()
} }
#endif #endif
#if QGC_GOOGLE_EARTH_ENABLED #ifdef QGC_GOOGLE_EARTH_ENABLED
if (!googleEarthView) if (!googleEarthView)
{ {
googleEarthView = new SubMainWindow(this); googleEarthView = new SubMainWindow(this);
...@@ -1275,6 +1275,16 @@ void MainWindow::connectCommonActions() ...@@ -1275,6 +1275,16 @@ void MainWindow::connectCommonActions()
perspectives->addAction(ui.actionLocal3DView); perspectives->addAction(ui.actionLocal3DView);
perspectives->setExclusive(true); perspectives->setExclusive(true);
#ifndef QGC_MAVGEN_ENABLED
ui.actionMavlinkView->setVisible(false);
#endif
#ifndef QGC_GOOGLE_EARTH_ENABLED
ui.actionGoogleEarthView->setVisible(false);
#endif
#ifndef QGC_OSG_ENABLED
ui.actionLocal3DView->setVisible(false);
#endif
// Mark the right one as selected // Mark the right one as selected
if (currentView == VIEW_ENGINEER) if (currentView == VIEW_ENGINEER)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment