From 41e5d36c006cffbebfecad31d18595f98e4843ae Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Tue, 3 Apr 2018 16:05:00 +0200 Subject: [PATCH] ui: changed caption of buttons in missing paths dialog --- .../project_wizzard/QtProjectWizzardContentPaths.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp index d8867d87..f408721e 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp @@ -115,15 +115,18 @@ bool QtProjectWizzardContentPaths::check() ).arg(m_titleString) ); msgBox.setDetailedText(missingPaths); - msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel); - int ret = msgBox.exec(); + QPushButton* removeButton = msgBox.addButton("Remove", QMessageBox::YesRole); + 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); save(); } - else if (ret == QMessageBox::Cancel) + else if (msgBox.clickedButton() == cancelButton) { return false; }