diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index cfb08fe84c36d38c8502d308ef16278a2fa3035c..d26742112779b1bde492d89934c70503120a3626 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -596,7 +596,7 @@ void MainWindow::buildCommonWidgets() } #endif -#if QGC_GOOGLE_EARTH_ENABLED +#ifdef QGC_GOOGLE_EARTH_ENABLED if (!googleEarthView) { googleEarthView = new SubMainWindow(this); @@ -1275,6 +1275,16 @@ void MainWindow::connectCommonActions() perspectives->addAction(ui.actionLocal3DView); 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 if (currentView == VIEW_ENGINEER) {