┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-06-06 08:38:58 +0200
committerFrank Reininghaus <[email protected]>2013-06-06 08:38:58 +0200
commite7a9d5590b8e4c0b11df6b4ef7c16db046208bca (patch)
treebe8061b0ed96e4436833dec489635a6b0e2db82f
parent2bdc5eff541c1e60fa197750e6aa73cee116beac (diff)
startPreviewJob: if items is empty, delay call to slotPreviewJobFinshed
This should prevent that other functions, which start preview jobs, eventually call themselves and thus cause trouble. CCBUG: 320791
-rw-r--r--src/kitemviews/kfileitemmodelrolesupdater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp
index c083559bf..644605c57 100644
--- a/src/kitemviews/kfileitemmodelrolesupdater.cpp
+++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp
@@ -912,7 +912,7 @@ void KFileItemModelRolesUpdater::startPreviewJob(const KFileItemList items)
m_state = PreviewJobRunning;
if (items.isEmpty()) {
- slotPreviewJobFinished(0);
+ QMetaObject::invokeMethod(this, "slotPreviewJobFinished", Qt::QueuedConnection, Q_ARG(KJob*, 0));
return;
}