From ffe01ee8407559f46171bfea4aa6f21e37f945fb Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 31 Oct 2020 12:40:57 +0100 Subject: FolderPanel: prevents scanning directory tree recursively KFileItemListView contents are periodically scanned by KFileItemModelRolesUpdater. It uses then KDirectoryContentsCounter to scan directories to determine their size possibly recursively. Introduce a scanDirectories setting to disable directory scanning by KFileItemModelRolesUpdater. BUG: 426617 FIXED-IN: 20.08.3 --- src/panels/folders/folderspanel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/panels/folders') diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index 88083e7a2..82b2e1b12 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -131,6 +131,7 @@ void FoldersPanel::showEvent(QShowEvent* event) // This assures that no performance and memory overhead is given when the folders panel is not // used at all and stays invisible. KFileItemListView* view = new KFileItemListView(); + view->setScanDirectories(false); view->setWidgetCreator(new KItemListWidgetCreator()); view->setSupportsItemExpanding(true); // Set the opacity to 0 initially. The opacity will be increased after the loading of the initial tree -- cgit v1.3