From 11fb9344c0fac2544479dbd7a9913eba740b74b5 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Tue, 22 Aug 2023 12:15:22 +0000 Subject: [PATCH] Allow to not ask again confirmation when opening 5 or more files or terminal at once BUG: 473513 --- src/dolphinmainwindow.cpp | 7 ++++--- src/views/dolphinview.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 68704b89a..afb86e152 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1189,11 +1189,12 @@ void DolphinMainWindow::openTerminalHere() {}, #endif KGuiItem(i18ncp("@action:button", "Open %1 Terminal", "Open %1 Terminals", urls.count()), QStringLiteral("utilities-terminal")), - KStandardGuiItem::cancel()); + KStandardGuiItem::cancel(), + QStringLiteral("ConfirmOpenManyTerminals")); #if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0) - if (answer != KMessageBox::PrimaryAction) { + if (answer != KMessageBox::PrimaryAction && answer != KMessageBox::Continue) { #else - if (answer != KMessageBox::Yes) { + if (answer != KMessageBox::Yes && answer != KMessageBox::Continue) { #endif return; } diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index e0d01d1e8..1d01b4c98 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1093,11 +1093,12 @@ void DolphinView::slotItemsActivated(const KItemSet &indexes) {}, #endif KGuiItem(i18ncp("@action:button", "Open %1 Item", "Open %1 Items", indexes.count()), QStringLiteral("document-open")), - KStandardGuiItem::cancel()); + KStandardGuiItem::cancel(), + QStringLiteral("ConfirmOpenManyFolders")); #if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0) - if (answer != KMessageBox::PrimaryAction) { + if (answer != KMessageBox::PrimaryAction && answer != KMessageBox::Continue) { #else - if (answer != KMessageBox::Yes) { + if (answer != KMessageBox::Yes && answer != KMessageBox::Continue) { #endif return; }