From a6f6b14e791f6ee82c5dbd8f112ed8b423d68ef6 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sun, 3 Jul 2022 18:45:38 +0200 Subject: [PATCH] Open >5 items dialog: use action terms instead of Yes/No buttons Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour of actions terms. --- src/views/dolphinview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 5e7c63e827..0e97b85614 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -995,7 +995,10 @@ void DolphinView::slotItemsActivated(const KItemSet &indexes) if (indexes.count() > 5) { QString question = i18np("Are you sure you want to open 1 item?", "Are you sure you want to open %1 items?", indexes.count()); - const int answer = KMessageBox::warningYesNo(this, question); + const int answer = KMessageBox::warningYesNo(this, question, {}, + KGuiItem(i18ncp("@action:button", "Open %1 Item", "Open %1 Items", indexes.count()), + QStringLiteral("document-open")), + KStandardGuiItem::cancel()); if (answer != KMessageBox::Yes) { return; }