]> cloud.milkyroute.net Git - dolphin.git/commit
Restore the view state after the URL of the DolphinView has been changed,
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 18 Feb 2017 19:34:02 +0000 (20:34 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 18 Feb 2017 19:34:02 +0000 (20:34 +0100)
commit41b0e4297313b6549f9178c77c30101a42b0525f
tree3cdf96e280dae625a31bfb60a048bb77205c806a
parentccb3658b3aa7f5b0f0b71cb6e91808bdfe58af64
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/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h
src/views/dolphinview.cpp
src/views/dolphinview.h