From 41b0e4297313b6549f9178c77c30101a42b0525f Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Sat, 18 Feb 2017 20:34:02 +0100 Subject: Restore the view state after the URL of the DolphinView has been changed, as stated in the documentation of KUrlNavigator::saveLocationState. The historyChanged signal of the KUrlNavigator is emitted before the urlChanged signal and so the view state restoring happens before the view URL has been changed. This makes it impossible to save and restore the selected URLs, because DolphinView::setUrl clears the list of selected items (which has been restored right before). This changes removes the history changed slot and restores the view state after the setUrl call. --- src/views/dolphinview.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 9728e58c3..c7267cee0 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -585,7 +585,6 @@ void DolphinView::setUrl(const QUrl& url) clearSelection(); - emit urlAboutToBeChanged(url); m_url = url; hideToolTip(); -- cgit v1.3