Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
ui: allow to cancel if cdb project setup specifies unused pch file
Browse files Browse the repository at this point in the history
  • Loading branch information
mlangkabel authored and egraether committed Oct 18, 2019
1 parent a856788 commit dc24bae
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ bool QtProjectWizardContentPathCxxPch::check()
"The provided compilation database file does not use precompiled headers. The specified input file at "
"Precompiled Header File will not be used."
);
QPushButton* cancelButton = msgBox.addButton("Cancel", QMessageBox::ButtonRole::RejectRole);
QPushButton* continueButton = msgBox.addButton("Continue", QMessageBox::ButtonRole::AcceptRole);
msgBox.exec();
if (msgBox.clickedButton() == cancelButton)
{
return false;
}
return true;
}
}
Expand Down

0 comments on commit dc24bae

Please sign in to comment.