From: Akseli Lahtinen Date: Thu, 22 May 2025 14:35:24 +0000 (+0300) Subject: [PATCH] Fix dialog modality settings X-Git-Tag: archive/raspbian/6.13.0-6+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=41625dc327853f8b0c2e426810caa87028de519a;p=kf6-kio.git [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 --- 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()));