forked from qt-creator/qt-creator
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:
committed by
BogDan Vatra
parent
6babc022d5
commit
e0f700406c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user