summaryrefslogtreecommitdiff
path: root/user/kdebugsettings/new-kmessagebox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/kdebugsettings/new-kmessagebox.patch')
-rw-r--r--user/kdebugsettings/new-kmessagebox.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/user/kdebugsettings/new-kmessagebox.patch b/user/kdebugsettings/new-kmessagebox.patch
new file mode 100644
index 000000000..957590476
--- /dev/null
+++ b/user/kdebugsettings/new-kmessagebox.patch
@@ -0,0 +1,18 @@
+KMessageBox doesn't support warningYesNo any more.
+
+This is a somewhat backport of upstream commit babc1c0a08[^1], but
+without the ifdef chicanery since we know we are using 5.100+.
+
+[^1]: https://invent.kde.org/utilities/kdebugsettings/-/commit/babc1c0a080b171aa0e44ae16e231b77b2e6500c
+
+--- kdebugsettings-22.04.2/src/customdebugsettingspage.cpp.old 2022-06-04 08:29:53.000000000 +0000
++++ kdebugsettings-22.04.2/src/customdebugsettingspage.cpp 2025-08-12 08:28:08.136276098 +0000
+@@ -182,7 +182,7 @@
+ }
+ const QString str = i18np("Do you want to remove this rule?", "Do you want to remove these %1 rules?", lst.count());
+
+- if (KMessageBox::No == KMessageBox::warningYesNo(this, str)) {
++ if (KMessageBox::ButtonCode::SecondaryAction == KMessageBox::warningTwoActions(this, str, i18n("Remove Rule"), KStandardGuiItem::remove(), KStandardGuiItem::cancel())) {
+ return;
+ }
+ for (int i = 0; i < lst.count(); ++i) {