From: Friedrich W. H. Kossebau Date: Sun, 3 Jul 2022 16:45:38 +0000 (+0200) Subject: Open >5 items dialog: use action terms instead of Yes/No buttons X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a6f6b14e791f6ee82c5dbd8f112ed8b423d68ef6 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. --- diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 5e7c63e82..0e97b8561 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; }