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:
Tobias Hunger
2014-10-15 18:18:54 +02:00
parent c2fb25fd8d
commit 89602419c4
6 changed files with 28 additions and 0 deletions

View File

@@ -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