From 41625dc327853f8b0c2e426810caa87028de519a Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Thu, 22 May 2025 17:35:24 +0300 Subject: [PATCH] [PATCH] Fix dialog modality settings By default all dialogs are ApplicationModal, thus they block clicking on any other app while the dialog is open. Set them to WindowModal so they only block the parent window. BUG: 504608 Gbp-Pq: Name upstream_9143fc2a_Fix-dialog-modality-settings.patch --- src/widgets/kpropertiesdialogbuiltin_p.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/kpropertiesdialogbuiltin_p.cpp b/src/widgets/kpropertiesdialogbuiltin_p.cpp index 910ab16..33945cf 100644 --- a/src/widgets/kpropertiesdialogbuiltin_p.cpp +++ b/src/widgets/kpropertiesdialogbuiltin_p.cpp @@ -1354,6 +1354,7 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() { bool isDir = (d->pmode == PermissionsOnlyDirs) || (d->pmode == PermissionsMixed); QDialog dlg(properties); + dlg.setWindowModality(Qt::WindowModal); dlg.setModal(true); dlg.setWindowTitle(i18n("Advanced Permissions")); @@ -2880,6 +2881,7 @@ void KDesktopPropsPlugin::slotAdvanced() { auto *dlg = new QDialog(d->m_frame); dlg->setObjectName(QStringLiteral("KPropertiesDesktopAdv")); + dlg->setWindowModality(Qt::WindowModal); dlg->setModal(true); dlg->setAttribute(Qt::WA_DeleteOnClose); dlg->setWindowTitle(i18n("Advanced Options for %1", properties->url().fileName())); -- 2.30.2