diff options
| author | Friedrich W. H. Kossebau <[email protected]> | 2022-07-03 18:59:27 +0200 |
|---|---|---|
| committer | Friedrich W. H. Kossebau <[email protected]> | 2022-07-13 10:19:59 +0000 |
| commit | c6f82aa378a58feaff5ad015057831e5bc535f0e (patch) | |
| tree | cfe78f5ba29e8f40970e793d895ad59cefa7bd11 /src/dolphinmainwindow.cpp | |
| parent | a6f6b14e791f6ee82c5dbd8f112ed8b423d68ef6 (diff) | |
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.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 24da84132..65c99329b 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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; } |
