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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
BogDan Vatra
2024-03-29 14:32:38 +02:00
committed by BogDan Vatra
parent 6babc022d5
commit e0f700406c

View File

@@ -1615,7 +1615,7 @@ private:
} }
// FIXME: Use asyncCopyFile instead // FIXME: Use asyncCopyFile instead
nextFile(); QMetaObject::invokeMethod(this, &GenericTransferImpl::nextFile, Qt::QueuedConnection);
} }
int m_currentIndex = 0; int m_currentIndex = 0;