From a38f83014467f61059fc40b2273d0175e9b3b26d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 8 Jun 2009 05:55:46 +0000 Subject: Mark the last visitied directory as active when going back in history. BUG: 192811 svn path=/trunk/KDE/kdebase/apps/; revision=978757 --- src/dolphinview.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 24831e03b..24f56f403 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -345,6 +345,15 @@ public: void setTabsForFilesEnabled(bool tabsForFiles); bool isTabsForFilesEnabled() const; + /** + * Marks the item \a url as active item as soon as it has + * been loaded by the directory lister. This is useful mark + * the previously visited directory as active when going + * back in history (the URL is known, but the item is not + * loaded yet). + */ + void activateItem(const KUrl& url); + /** * Returns true if the current view allows folders to be expanded, * i.e. presents a hierarchical view to the user. @@ -786,7 +795,7 @@ private: ToolTipManager* m_toolTipManager; KUrl m_rootUrl; - KUrl m_currentItemUrl; + KUrl m_activeItemUrl; KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu KFileItemList m_selectedItems; // this is used for making the View to remember selections after F5 -- cgit v1.3