diff options
| author | Emmanuel Pescosta <[email protected]> | 2017-02-18 20:34:02 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2017-02-18 20:34:02 +0100 |
| commit | 41b0e4297313b6549f9178c77c30101a42b0525f (patch) | |
| tree | 3cdf96e280dae625a31bfb60a048bb77205c806a /src/views | |
| parent | ccb3658b3aa7f5b0f0b71cb6e91808bdfe58af64 (diff) | |
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.
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 1 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 7 |
2 files changed, 0 insertions, 8 deletions
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(); diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index fbe3a6376..5e69fd37b 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -378,13 +378,6 @@ signals: */ void activated(); - /** - * Is emitted if the URL of the view will be changed to \a url. - * After the URL has been changed the signal urlChanged() will - * be emitted. - */ - void urlAboutToBeChanged(const QUrl& url); - /** Is emitted if the URL of the view has been changed to \a url. */ void urlChanged(const QUrl& url); |
