Since the user is asked twice atm.
Change-Id: I07221c47ab96bd9881d611cc2070ef43333cd2a0
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
void BuildSettingsWidget::deleteConfiguration()
{
- QMessageBox msgBox(QMessageBox::Question, tr("Remove Build Configuration"),
- tr("Do you really want to delete the build configuration <b>%1</b>?").arg(m_buildConfiguration->displayName()),
- QMessageBox::Yes|QMessageBox::No, this);
- msgBox.setDefaultButton(QMessageBox::No);
- msgBox.setEscapeButton(QMessageBox::No);
- if (msgBox.exec() == QMessageBox::No)
- return;
-
deleteConfiguration(m_buildConfiguration);
}