]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Allow to not ask again confirmation when opening 5 or more files or terminal at once
authorFelix Ernst <felixernst@kde.org>
Tue, 22 Aug 2023 12:15:22 +0000 (12:15 +0000)
committerMéven Car <meven.car@kdemail.net>
Wed, 23 Aug 2023 16:54:52 +0000 (16:54 +0000)
BUG: 473513

src/dolphinmainwindow.cpp
src/views/dolphinview.cpp

index 68704b89a4277692ed4c718009ae68f4f93bb0d9..afb86e1522121971018639bc07339979c44048a4 100644 (file)
@@ -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;
         }
index e0d01d1e85baf32a807d70bcd97d7346e5d83f81..1d01b4c98451b2164f4c9bde3f6009a06afc127c 100644 (file)
@@ -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;
         }