mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Open >5 terminals 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
a6f6b14e79
commit
c6f82aa378
|
@ -1119,7 +1119,10 @@ void DolphinMainWindow::openTerminalHere()
|
|||
if (urls.count() > 5) {
|
||||
QString question = i18np("Are you sure you want to open 1 terminal window?",
|
||||
"Are you sure you want to open %1 terminal windows?", urls.count());
|
||||
const int answer = KMessageBox::warningYesNo(this, question);
|
||||
const int answer = KMessageBox::warningYesNo(this, question, {},
|
||||
KGuiItem(i18ncp("@action:button", "Open %1 Terminal", "Open %1 Terminals", urls.count()),
|
||||
QStringLiteral("utilities-terminal")),
|
||||
KStandardGuiItem::cancel());
|
||||
if (answer != KMessageBox::Yes) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue