--===============4019491008705941298== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/113290/#review42351 ----------------------------------------------------------- Ship it! Ship It! - Emmanuel Pescosta On Oct. 16, 2013, 10:36 p.m., Frank Reininghaus wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/113290/ > ----------------------------------------------------------- > > (Updated Oct. 16, 2013, 10:36 p.m.) > > > 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 > > --===============4019491008705941298== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/113290/

Ship it!

Ship It!

- Emmanuel Pescosta


On October 16th, 2013, 10:36 p.m. CEST, Frank Reininghaus wrote:

Review request for Dolphin.
By Frank Reininghaus.

Updated Oct. 16, 2013, 10:36 p.m.

Bugs: 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.

Testing

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

Diffs

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

View Diff

--===============4019491008705941298==--