Commit 2491938c authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Christoph Cullmann
Browse files

Branch delete dialog: avoid Yes/No button

Yes/No buttons are discouraged by KDE HIG in favour of action terms
parent 4b203b95
Pipeline #199115 canceled with stage
......@@ -37,7 +37,7 @@ BranchDeleteDialog::BranchDeleteDialog(const QString &dotGitPath, QWidget *paren
if (btn == deleteBtn) {
auto count = branchesToDelete().count();
QString ques = i18np("Are you sure you want to delete the selected branch?", "Are you sure you want to delete the selected branches?", count);
auto ret = KMessageBox::questionYesNo(this, ques, {}, KStandardGuiItem::yes(), KStandardGuiItem::no(), {}, KMessageBox::Dangerous);
auto ret = KMessageBox::questionYesNo(this, ques, {}, KStandardGuiItem::del(), KStandardGuiItem::cancel(), {}, KMessageBox::Dangerous);
if (ret == KMessageBox::Yes) {
accept();
} else {
......
Supports Markdown
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