diff options
| author | Méven Car <[email protected]> | 2020-10-31 12:40:57 +0100 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-11-03 02:21:43 +0000 |
| commit | ffe01ee8407559f46171bfea4aa6f21e37f945fb (patch) | |
| tree | 42d74be99c12a007d8d95c12a55081671ee9777c /src/panels/folders | |
| parent | 5e9a869a39d1d91aae85b6dbbd09d475f9612f43 (diff) | |
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
Diffstat (limited to 'src/panels/folders')
| -rw-r--r-- | src/panels/folders/folderspanel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<FoldersItemListWidget>()); view->setSupportsItemExpanding(true); // Set the opacity to 0 initially. The opacity will be increased after the loading of the initial tree |
