From 7bd8a826f40b3973d127d32f8f00a625c08d1c1d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 26 Sep 2007 09:11:40 +0000 Subject: lessons learned from the column view: never invoke KDirModel::expandToUrl() when the directory lister has not finished its loading... svn path=/trunk/KDE/kdebase/apps/; revision=717203 --- src/treeviewsidebarpage.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/treeviewsidebarpage.h') diff --git a/src/treeviewsidebarpage.h b/src/treeviewsidebarpage.h index 1124dcf3f..ec0907ac2 100644 --- a/src/treeviewsidebarpage.h +++ b/src/treeviewsidebarpage.h @@ -100,6 +100,19 @@ private slots: */ void loadSubTree(); + /** + * Is invoked when the directory lister has started the loading + * of the URL \a url and sets the internal m_dirListerCompleted + * state to false. + */ + void slotDirListerStarted(const KUrl& url); + + /** + * Is invoked when the directory lister has completed the loading + * and sets the internal m_dirListerCompleted state to true. + */ + void slotDirListerCompleted(); + private: /** * Initializes the base URL of the tree and expands all @@ -109,6 +122,7 @@ private: void loadTree(const KUrl& url); private: + bool m_dirListerCompleted; KDirLister* m_dirLister; DolphinModel* m_dolphinModel; DolphinSortFilterProxyModel* m_proxyModel; -- cgit v1.3