┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistview.h
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2024-12-19 10:04:16 +0000
committerMéven Car <[email protected]>2024-12-19 10:04:16 +0000
commiteca160ae5a2dbd5590e4bae22cddde488dbacf74 (patch)
treefca5a83742c53cdaba71f24f9dfea5a3b7024f25 /src/kitemviews/kfileitemlistview.h
parente977737a182c5787d91d18f2d267027ba4f9dc24 (diff)
dolphinview: Update thumbnail on filename change
If filename of an item was updated previously, it would modify the model before the file was actually changed. This led to the model calling a signal that would try to run a previewjob, but since the filename is not actually changed yet on disk, it would fail. This patch moves the model updating after copyjob. Copyjob will take care of the file renaming if there is already existing file. We just need to update the model correctly after the job has succeeded. BUG:497555
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
-rw-r--r--src/kitemviews/kfileitemlistview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h
index 4c48c52ab..d6ffd3d0f 100644
--- a/src/kitemviews/kfileitemlistview.h
+++ b/src/kitemviews/kfileitemlistview.h
@@ -136,6 +136,7 @@ private:
QTimer *m_updateIconSizeTimer;
friend class KFileItemListViewTest; // For unit testing
+ friend class DolphinMainWindowTest; // For unit testing
};
#endif