[Mappimg tool] Clear "own models" if there are NO models and hence NO "models changed" signal

This commit is contained in:
Klaus Basan
2020-03-24 00:20:43 +01:00
committed by Mat Sutcliffe
parent 8c2d2b0667
commit 9c01983f25
4 changed files with 58 additions and 30 deletions

View File

@@ -101,6 +101,9 @@ namespace BlackGui
//! Update view and cache
BlackMisc::CStatusMessage updateViewAndCache(const BlackMisc::Simulation::CAircraftModelList &models);
//! Clear the view
void clearView();
//! Models view
BlackGui::Views::CAircraftModelView *view() const;
@@ -128,6 +131,9 @@ namespace BlackGui
//! Models have been successfully loaded
void successfullyLoadedModels(const BlackMisc::Simulation::CSimulatorInfo &simulator, int count);
//! Own models simulator has changed
void ownModelsSimulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
private:
QScopedPointer<Ui::CDbOwnModelsComponent> ui;
BlackMisc::Simulation::IAircraftModelLoader *m_modelLoader = nullptr; //!< read own aircraft models, aka models on disk