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;
- resolveNextPendingRoles();
+ QTimer::singleShot(0, this, SLOT(resolveNextPendingRoles()));
}
}
// asynchronous determination of the sort role.
killPreviewJob();
m_state = ResolvingSortRole;
- resolveNextSortRole();
+ QTimer::singleShot(0, this, SLOT(resolveNextSortRole()));
}
return;
if (!resolvingInProgress) {
// Trigger the asynchronous resolving of the changed roles.
m_state = ResolvingAllRoles;
- resolveNextPendingRoles();
+ QTimer::singleShot(0, this, SLOT(resolveNextPendingRoles()));
}
}
}