Commit 9b8f713b authored by Eike Ziller's avatar Eike Ziller Committed by Tobias Hunger

Wizards: Respect cancel button when asking about overwriting files

Change-Id: Ica567fd53aedf074976165401b98558e75e3bb56
Task-number: QTCREATORBUG-15022
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 915f68de
......@@ -218,7 +218,7 @@ void JsonWizard::accept()
emit prePromptForOverwrite(m_files);
JsonWizardGenerator::OverwriteResult overwrite =
JsonWizardGenerator::promptForOverwrite(&m_files, &errorMessage);
if (overwrite == JsonWizardGenerator::OverwriteError) {
if (overwrite != JsonWizardGenerator::OverwriteOk) {
if (!errorMessage.isEmpty())
QMessageBox::warning(this, tr("Failed to Overwrite Files"), errorMessage);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment