This prevents that functions that call these indirectly call themselves
recursively and cause trouble.
BUG: 320791
startPreviewJob(itemsToResolve);
// Determine the icons asynchronously as fast as possible.
startPreviewJob(itemsToResolve);
// Determine the icons asynchronously as fast as possible.
- resolveNextPendingRoles();
+ QTimer::singleShot(0, this, SLOT(resolveNextPendingRoles()));
} else {
m_pendingIndexes = indexes;
// Trigger the asynchronous resolving of all roles.
m_state = ResolvingAllRoles;
} else {
m_pendingIndexes = indexes;
// Trigger the asynchronous resolving of all roles.
m_state = ResolvingAllRoles;
- resolveNextPendingRoles();
+ QTimer::singleShot(0, this, SLOT(resolveNextPendingRoles()));
// asynchronous determination of the sort role.
killPreviewJob();
m_state = ResolvingSortRole;
// asynchronous determination of the sort role.
killPreviewJob();
m_state = ResolvingSortRole;
+ QTimer::singleShot(0, this, SLOT(resolveNextSortRole()));
if (!resolvingInProgress) {
// Trigger the asynchronous resolving of the changed roles.
m_state = ResolvingAllRoles;
if (!resolvingInProgress) {
// Trigger the asynchronous resolving of the changed roles.
m_state = ResolvingAllRoles;
- resolveNextPendingRoles();
+ QTimer::singleShot(0, this, SLOT(resolveNextPendingRoles()));