<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>326039</bug_id>
          
          <creation_ts>2013-10-15 08:59:22 +0000</creation_ts>
          <short_desc>View state (current item, scroll position, expanded folders) is not restored when going &quot;back&quot;</short_desc>
          <delta_ts>2013-10-26 07:26:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>4.11.60</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Frank Reininghaus">frank78ac</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          
          
          <cf_commitlink>http://commits.kde.org/kde-baseapps/ec4efae6428a0d32657b6aaf0ceaef8238748f5c</cf_commitlink>
          <cf_versionfixedin>4.11.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1403561</commentid>
    <comment_count>0</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-10-15 08:59:22 +0000</bug_when>
    <thetext>The fix for bug 161385 caused a regression in the KDE/4.11 branch. I&apos;ll look into it - this should definitely be fixed properly, or the bad commit reverted, before 4.11.3 is tagged.

Reproducible: Always

Steps to Reproduce:
1. Scroll down, change the current item, and/or expand some folders in Details View.
2. Go to another folder.
3. Click the &quot;Back&quot; button in the tool bar.
Actual Results:  
The previous state of the view should be restored.

Expected Results:  
It is not restored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406423</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-10-26 07:26:26 +0000</bug_when>
    <thetext>Git commit ec4efae6428a0d32657b6aaf0ceaef8238748f5c by Frank Reininghaus.
Committed on 26/10/2013 at 07:24.
Pushed by freininghaus into branch &apos;KDE/4.11&apos;.

Fix broken view state restoration

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) was not restored any more when
going &quot;Back&quot;.

The reason is that &quot;m_view-&gt;reload()&quot; in
DolphinViewContainer::setUrl(const KUrl&amp; newUrl) was always executed
just after entering a directory, and that command overwrites this
information.

Distinguishing between &quot;change URL&quot; and &quot;reload the view&quot; works better
if it&apos;s done in DolphinMainWindow instead of DolphinViewContainer.
FIXED-IN: 4.11.3
REVIEW: 113290

M  +14   -1    dolphin/src/dolphinmainwindow.cpp
M  +7    -0    dolphin/src/dolphinmainwindow.h
M  +0    -4    dolphin/src/dolphinviewcontainer.cpp

http://commits.kde.org/kde-baseapps/ec4efae6428a0d32657b6aaf0ceaef8238748f5c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>