<?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>304363</bug_id>
          
          <creation_ts>2012-07-31 22:14:33 +0000</creation_ts>
          <short_desc>Expansion status of a tree structure in Details View and Folders Panel is forgotten after collapsing a top level folder</short_desc>
          <delta_ts>2013-10-26 09:47:47 +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>view-engine: details mode</component>
          <version>2.0</version>
          <rep_platform>Ubuntu</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></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcelo Sales">mmtsales</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>mechaweb</cc>
          
          <cf_commitlink>http://commits.kde.org/kde-baseapps/07f0d125b212b926ce7d360d914aab304a6af96d</cf_commitlink>
          <cf_versionfixedin>4.12.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1280358</commentid>
    <comment_count>0</comment_count>
    <who name="Marcelo Sales">mmtsales</who>
    <bug_when>2012-07-31 22:14:33 +0000</bug_when>
    <thetext>If there is a tree with several sub-nodes expanded in the folder panel and the user collapses an upper level node, Dolphin forgets which sub-nodes were expanded.
When the user expands again the same node which had been collapsed, only the next level subnodes are shown.
This is a regression. Dolphin used to remember which nodes were expanded and did show the tree exactly as it was before it was collapsed. I don&apos;t know in which version this behavior changed.

Reproducible: Always

Steps to Reproduce:
1. In folder view, expand a folder. Expand a subfolder of that folder. Expand another subfolder still one level deeper.
2. Collapse the first folder
3. Expand the first folder again
Actual Results:  
Only the direct children of the first folder are shown.

Expected Results:  
All the levels that were expanded before the first folder was collapsed should be expanded again when that folder was re-expanded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1280931</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2012-08-03 06:32:16 +0000</bug_when>
    <thetext>Thanks for the report!

The behaviour changed in KDE 4.8, when Dolphin replaced Qt&apos;s item views with its own view engine. This affects not only the Folders Panel, but also the Details View. It&apos;s certainly possible to fix this, but not in a straightforward way. Therefore, I&apos;d like to see if there is a big demand to fix this before we think about how this could be implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291148</commentid>
    <comment_count>2</comment_count>
    <who name="Jeroen van Meeuwen (Kolab Systems)">vanmeeuwen</who>
    <bug_when>2012-08-24 16:20:03 +0000</bug_when>
    <thetext>Resetting assignee to default as per bug #305719</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297956</commentid>
    <comment_count>3</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2012-09-17 12:07:31 +0000</bug_when>
    <thetext>*** Bug 306790 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406424</commentid>
    <comment_count>4</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-10-26 07:40:12 +0000</bug_when>
    <thetext>Git commit 07f0d125b212b926ce7d360d914aab304a6af96d by Frank Reininghaus.
Committed on 26/10/2013 at 07:36.
Pushed by freininghaus into branch &apos;master&apos;.

Restore the tree state in Details View if a folder is re-expanded

This patch actually does two things when collapsing an expanded folder
with expanded children:

(a) It removes all expanded children (which are removed from the model)
    from m_expandedDirs.

(b) It remembers the expanded children and restores them if the
    top-level folder is re-expanded.
FIXED-IN: 4.12.0
REVIEW: 113293

M  +15   -0    dolphin/src/kitemviews/kfileitemmodel.cpp

http://commits.kde.org/kde-baseapps/07f0d125b212b926ce7d360d914aab304a6af96d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406450</commentid>
    <comment_count>5</comment_count>
    <who name="Marcelo Sales">mmtsales</who>
    <bug_when>2013-10-26 09:47:47 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>