ui: changed caption of buttons in missing paths dialog
This commit is contained in:
@@ -115,15 +115,18 @@ bool QtProjectWizzardContentPaths::check()
|
|||||||
).arg(m_titleString)
|
).arg(m_titleString)
|
||||||
);
|
);
|
||||||
msgBox.setDetailedText(missingPaths);
|
msgBox.setDetailedText(missingPaths);
|
||||||
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
QPushButton* removeButton = msgBox.addButton("Remove", QMessageBox::YesRole);
|
||||||
int ret = msgBox.exec();
|
QPushButton* keepButton = msgBox.addButton("Keep", QMessageBox::ButtonRole::NoRole);
|
||||||
|
QPushButton* cancelButton = msgBox.addButton("Cancel", QMessageBox::ButtonRole::RejectRole);
|
||||||
|
|
||||||
if (ret == QMessageBox::Yes)
|
msgBox.exec();
|
||||||
|
|
||||||
|
if (msgBox.clickedButton() == removeButton)
|
||||||
{
|
{
|
||||||
m_list->setPaths(existingPaths);
|
m_list->setPaths(existingPaths);
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
else if (ret == QMessageBox::Cancel)
|
else if (msgBox.clickedButton() == cancelButton)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user