diff options
| author | Frank Reininghaus <[email protected]> | 2013-06-06 08:38:58 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-06-06 08:38:58 +0200 |
| commit | e7a9d5590b8e4c0b11df6b4ef7c16db046208bca (patch) | |
| tree | be8061b0ed96e4436833dec489635a6b0e2db82f | |
| parent | 2bdc5eff541c1e60fa197750e6aa73cee116beac (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.cpp | 2 |
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; } |
