mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T311, avoid crash of model set dialog
- check for nullptr mapping component - disable new set button in dialog
This commit is contained in:
@@ -177,7 +177,7 @@ namespace BlackGui
|
||||
{
|
||||
const CSimulatorInfo simulator = ui->comp_SimulatorSelector->getValue();
|
||||
m_modelSetDialog->setSimulator(simulator);
|
||||
m_modelSetDialog->enableButtons(false);
|
||||
m_modelSetDialog->enableButtons(false, false);
|
||||
m_modelSetDialog->exec();
|
||||
|
||||
// force UI update
|
||||
|
||||
Reference in New Issue
Block a user