https://bugs.kde.org/show_bug.cgi?id=476995

--- Comment #5 from Jan K <jprofeso...@o2.pl> ---
So far I failed to comprehend the relations of PlaceTreeModel, SortedDirModel,
KFilePlacesModel, etc., but it turns out that dumb hacking the 'canFetchMore'
to always return true makes gwenview usable again - one can browse the
directory tree, and it's again in sync with the main view.
By no means this solves the issue, for it renders all directories as having
subdirectories. (Upon expanding an empty directory, nothing happens apart from
displaying 'v' in place of '>' on to the left of the directory name.)
I regard this to be a **very** dirty workaround for time being.

===========================================================
--- a/lib/placetreemodel.cpp    2024-02-04 15:26:58.085270323 +0100
--- b/lib/placetreemodel.cpp    2024-02-04 15:26:58.085270323 +0100
@@ -273,8 +273,8 @@
         // Special case to avoid calling openUrl on all places at startup
         return true;
     }
-    const QModelIndex dirIndex = d->dirIndexForNode(node, parent);
-    return node.model->canFetchMore(dirIndex);
+    // const QModelIndex dirIndex = d->dirIndexForNode(node, parent);
+    return true; // node.model->canFetchMore(dirIndex);
 }

 void PlaceTreeModel::fetchMore(const QModelIndex &parent)
===========================================================

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to