diff options
| author | Peter Penz <[email protected]> | 2007-09-26 09:11:40 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-26 09:11:40 +0000 |
| commit | 7bd8a826f40b3973d127d32f8f00a625c08d1c1d (patch) | |
| tree | 3efe5305fd6aaaf5de21e7824313ba893f7f3f9a /src/treeviewsidebarpage.h | |
| parent | 8c9c081ead1b473ee05977708e33a746af7297c2 (diff) | |
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
Diffstat (limited to 'src/treeviewsidebarpage.h')
| -rw-r--r-- | src/treeviewsidebarpage.h | 14 |
1 files changed, 14 insertions, 0 deletions
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; |
