From f6ea91e0b2eef99506f7a8ee75aae8c4b56f7dba Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 21 Apr 2019 00:47:41 +0200 Subject: [PATCH] Add missing FG part --- .../components/dbownmodelsetcomponent.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/blackgui/components/dbownmodelsetcomponent.cpp b/src/blackgui/components/dbownmodelsetcomponent.cpp index 3b5e8f97b..d0724cfa9 100644 --- a/src/blackgui/components/dbownmodelsetcomponent.cpp +++ b/src/blackgui/components/dbownmodelsetcomponent.cpp @@ -557,6 +557,24 @@ namespace BlackGui }); m_setNewActions.append(a); } + if (sims.isFG()) + { + QAction *a = new QAction(CIcons::appModels16(), "FG models", this); + connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked) + { + Q_UNUSED(checked); + ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FG)); + }); + m_setActions.append(a); + + a = new QAction(CIcons::appModels16(), "New set FG models", this); + connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked) + { + Q_UNUSED(checked); + ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FG)); + }); + m_setNewActions.append(a); + } QAction *a = new QAction(CIcons::appDistributors16(), "Apply distributor preferences", this); connect(a, &QAction::triggered, ownModelSetComp, &CDbOwnModelSetComponent::distributorPreferencesChanged, Qt::QueuedConnection);