mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
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.
This commit is contained in:
parent
8a721c35fc
commit
a6f6b14e79
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue