Review Request 113290: Fix for broken view state restoration (recent regression in KDE/4.11 branch)

Frank Reininghaus frank78ac at googlemail.com
Wed Oct 16 21:36:38 BST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113290/
-----------------------------------------------------------

Review request for Dolphin.


Bugs: 326039
    http://bugs.kde.org/show_bug.cgi?id=326039


Repository: kde-baseapps


Description
-------

The fix for bug 161385 (which was about Dolphin still showing an empty view if a device that had been unmounted earlier was clicked in the Places Panel) caused a regression: the view state (current item, scroll position, Details View expansion state) is not restored any more when going "Back".

The reason is that "m_view->reload()" in DolphinViewContainer::setUrl(const KUrl& newUrl) is now always executed just after entering a directory, and that command overwrites this information.

Distinguishing between "change URL" and "reload the view" works better if it's done in DolphinMainWindow instead of DolphinViewContainer.


Diffs
-----

  dolphin/src/dolphinmainwindow.h 7da5801 
  dolphin/src/dolphinmainwindow.cpp ccef356 
  dolphin/src/dolphinviewcontainer.cpp c8fc757 

Diff: http://git.reviewboard.kde.org/r/113290/diff/


Testing
-------

Fixes the bug, and I verified that the new approach also fixes bug 161385.


Thanks,

Frank Reininghaus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20131016/06e19611/attachment.htm>


More information about the kfm-devel mailing list