From e0f700406c729360cd071f89555a5b1939100d98 Mon Sep 17 00:00:00 2001 From: BogDan Vatra Date: Fri, 29 Mar 2024 14:32:38 +0200 Subject: [PATCH] Don't block the main thread for too long When copying lots of files the ui hangs util all of them are copied. Change-Id: I5c88ec4ad1d8425b5f65eb26a360af138309f200 Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/linuxdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 2fc49ca8e3a..17044403d91 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -1615,7 +1615,7 @@ private: } // FIXME: Use asyncCopyFile instead - nextFile(); + QMetaObject::invokeMethod(this, &GenericTransferImpl::nextFile, Qt::QueuedConnection); } int m_currentIndex = 0;