[PATCH] Fix lockup when renaming a file from properties dialog 4c12899369f43009269d0f...
authorDavid Redondo <kde@david-redondo.de>
Mon, 25 Jan 2021 11:26:29 +0000 (12:26 +0100)
committerNorbert Preining <norbert@preining.info>
Thu, 15 Jul 2021 01:20:01 +0000 (02:20 +0100)
Gbp-Pq: Name upstream_5.79_0300441bb80c3d75a305bc7b1f4a7e1c36f28845_fix_lockup_when_renaming_a_file_from_properties_dialog.patch

src/widgets/kpropertiesdialog.cpp

index a7c52d5b23eb0a73b329d2ba752fdac3813c1f67..cbd5afc079b9636199830ef0cd5d5c37ec464aab 100644 (file)
@@ -1538,7 +1538,7 @@ void KFilePropsPlugin::applyChanges()
             } else { // Copying a template
                 job = KIO::copyAs(oldurl, properties->url());
             }
-
+            KJobWidgets::setWindow(job, properties);
             connect(job, &KJob::result,
                     this, &KFilePropsPlugin::slotCopyFinished);
             connect(job, &KIO::CopyJob::renamed,
@@ -1547,7 +1547,7 @@ void KFilePropsPlugin::applyChanges()
             QEventLoop eventLoop;
             connect(this, &KFilePropsPlugin::leaveModality,
                     &eventLoop, &QEventLoop::quit);
-            eventLoop.exec(QEventLoop::ExcludeUserInputEvents);
+            eventLoop.exec();
             return;
         }
         properties->updateUrl(properties->url());