From 4bccabca1bd705f24a35ed1ea31fc6d185c2b442 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 18 Sep 2009 17:14:03 +0000 Subject: Update the controller's url upon redirection, otherwise pasting would paste into the old url. #186947 svn path=/trunk/KDE/kdebase/apps/; revision=1025406 --- src/dolphincontroller.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index bd2189e21..8aebdcac4 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -97,6 +97,12 @@ public: void setUrl(const KUrl& url); const KUrl& url() const; + /** + * Sets the URL to \a url and does nothing else. Called when + * a redirection happens. + */ + void redirectToUrl(const KUrl& url); + /** * Changes the current item view where the controller is working. This * is only necessary for views like the tree view, where internally @@ -165,7 +171,7 @@ public: void indicateSortOrderChange(Qt::SortOrder order); /** - * Informs the abstract Dolphin view about a change between separate sorting + * Informs the abstract Dolphin view about a change between separate sorting * (with folders first) and mixed sorting of files and folders done inside * the view implementation. This method should be invoked by the view * implementation (e. g. the details view uses this method in combination -- cgit v1.3