Ref T311, avoid crash of model set dialog

- check for nullptr mapping component
- disable new set button in dialog
This commit is contained in:
Klaus Basan
2018-08-27 15:25:53 +02:00
parent a7d3fb4db0
commit d320f590b4
5 changed files with 17 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ namespace BlackGui
//! @}
//! Enable buttons
void enableButtons(bool firstSet);
void enableButtons(bool firstSet, bool newSet);
//! Set the model set for a given simulator
void setModelSet(const BlackMisc::Simulation::CAircraftModelList &models, const BlackMisc::Simulation::CSimulatorInfo &simulator);