[PATCH] klipper: make "Add Actions" dialog only window-modal
authorNate Graham <nate@kde.org>
Thu, 22 May 2025 20:58:27 +0000 (14:58 -0600)
committerAurélien COUDERC <coucouf@debian.org>
Tue, 20 May 2025 06:31:26 +0000 (08:31 +0200)
Otherwise it blocks all of plasmashell while it's open.

BUG: 501938
FIXED-IN: 6.3.6

(cherry picked from commit 30c0703860e8e943999152e141bb44c62ee1c038)

Co-authored-by: Nate Graham <nate@kde.org>
Gbp-Pq: Name upstream_bf67f256_klipper-make-Add-Actions-dialog-only-window-modal.patch

klipper/editactiondialog.cpp

index 09c54c3dd70a672f5643ddb8c6edf3d655663e6c..eda12832e12d0859f9f13e71b358d0581d054575 100644 (file)
@@ -181,6 +181,7 @@ EditActionDialog::EditActionDialog(QWidget *parent)
     : QDialog(parent)
 {
     setWindowTitle(i18n("Action Properties"));
+    setWindowModality(Qt::WindowModal);
     QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
     buttons->button(QDialogButtonBox::Ok)->setShortcut(Qt::CTRL | Qt::Key_Return);
     connect(buttons, &QDialogButtonBox::accepted, this, &EditActionDialog::slotAccepted);