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

@@ -42,9 +42,9 @@ namespace BlackGui
return ui->comp_OwnModelSet;
}
void CDbOwnModelSetDialog::enableButtons(bool firstSet)
void CDbOwnModelSetDialog::enableButtons(bool firstSet, bool newSet)
{
ui->comp_OwnModelSet->enableButtons(firstSet);
ui->comp_OwnModelSet->enableButtons(firstSet, newSet);
}
} // ns
} // ns