forked from qt-creator/qt-creator
JsonWizard: Make sure to open files as the last thing
Make sure to open files only after last touches were applied by the wizard. Change-Id: I0da8b49ebe58b0516fa44ef7b0472cce20a5936f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -181,6 +181,13 @@ void JsonWizard::accept()
|
||||
return;
|
||||
}
|
||||
emit filesReady(m_files);
|
||||
if (!JsonWizardGenerator::allDone(this, &list, &errorMessage)) {
|
||||
if (!errorMessage.isEmpty())
|
||||
QMessageBox::warning(this, tr("Failed to Open Files"), errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
emit allDone(m_files);
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
Reference in New Issue
Block a user