Browse Source

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

QGC4.4
John Tapsell 11 years ago
parent
commit
ab0469f68c
  1. 12
      src/ui/MainWindow.cc

12
src/ui/MainWindow.cc

@ -596,7 +596,7 @@ void MainWindow::buildCommonWidgets() @@ -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() @@ -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)
{

Loading…
Cancel
Save