Bring a modal window back to front when opening a dialog

Otherwise it can happen the modal window in background blocks the other UI.
This commit is contained in:
Klaus Basan
2019-04-17 16:39:10 +02:00
parent 803e68edd3
commit b093d02f49
6 changed files with 22 additions and 6 deletions

View File

@@ -31,8 +31,10 @@ namespace BlackGui
void CAircraftModelSetValidationDialog::validatedModelSet(const CSimulatorInfo &simulator, const CAircraftModelList &valid, const CAircraftModelList &invalid, bool stopped, const CStatusMessageList &msgs)
{
if (!sGui) { return; }
ui->comp_AircraftModelValidation->validatedModelSet(simulator, valid, invalid, stopped, msgs);
this->setWindowTitle(QStringLiteral("Model validation for '%1'").arg(simulator.toQString(true)));
CGuiApplication::modalWindowToFront();
}
bool CAircraftModelSetValidationDialog::event(QEvent *event)