<?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>298782</bug_id>
          
          <creation_ts>2012-04-25 06:59:38 +0000</creation_ts>
          <short_desc>When deleting the current item, the new current item is not underlined in the view</short_desc>
          <delta_ts>2012-04-25 07:22:11 +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: general</component>
          <version>16.12.2</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></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frank Reininghaus">frank78ac</reporter>
          <assigned_to name="Peter Penz">peter.penz19</assigned_to>
          
          
          <cf_commitlink>http://commits.kde.org/kde-baseapps/68ce395a192362969783615e50a8004d3029eb7e</cf_commitlink>
          <cf_versionfixedin>4.8.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1249402</commentid>
    <comment_count>0</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2012-04-25 06:59:38 +0000</bug_when>
    <thetext>When the current item is deleted in the view (e.g, by pressing Delete while only this item is selected), the next item takes its position in the view and becomes the new current item, but it is not underlined.

A fix is coming in a minute.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249405</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2012-04-25 07:09:33 +0000</bug_when>
    <thetext>Git commit 68ce395a192362969783615e50a8004d3029eb7e by Frank Reininghaus.
Committed on 25/04/2012 at 09:01.
Pushed by freininghaus into branch &apos;KDE/4.8&apos;.

When the current item is removed, make -1 the current index temporarily

This fixes two problems:
1. KItemListKeyboardSearchManger can cancel the current search when a
   new folder is opened (note that this action removes the current item
   from the view).
2. The view can underline the new current item (which is the item that
   used to be below the removed item). Note that this did not work
   before because the view did not receive a currentChanged() signal in
   this case and therefore did not update the &quot;current item&quot; status of
   the new current item.
Related: bug 297488
FIXED-IN: 4.8.3
REVIEW: 104709

M  +2    -0    dolphin/src/kitemviews/kitemlistcontroller.cpp
M  +10   -0    dolphin/src/kitemviews/kitemlistkeyboardsearchmanager.cpp
M  +4    -0    dolphin/src/kitemviews/kitemlistkeyboardsearchmanager_p.h
M  +6    -3    dolphin/src/kitemviews/kitemlistselectionmanager.cpp

http://commits.kde.org/kde-baseapps/68ce395a192362969783615e50a8004d3029eb7e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249415</commentid>
    <comment_count>2</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2012-04-25 07:22:11 +0000</bug_when>
    <thetext>Git commit 922742762f2b1655ba55756b590e327acb00ce77 by Frank Reininghaus.
Committed on 25/04/2012 at 09:20.
Pushed by freininghaus into branch &apos;master&apos;.

When the current item is removed, make -1 the current index temporarily

This fixes two problems:
1. KItemListKeyboardSearchManger can cancel the current search when a
   new folder is opened (note that this action removes the current item
   from the view).
2. The view can underline the new current item (which is the item that
   used to be below the removed item). Note that this did not work
   before because the view did not receive a currentChanged() signal in
   this case and therefore did not update the &quot;current item&quot; status of
   the new current item.
Related: bug 297488
REVIEW: 104709
(cherry picked from commit 68ce395a192362969783615e50a8004d3029eb7e)

M  +2    -0    dolphin/src/kitemviews/kitemlistcontroller.cpp
M  +6    -3    dolphin/src/kitemviews/kitemlistselectionmanager.cpp
M  +10   -0    dolphin/src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
M  +4    -0    dolphin/src/kitemviews/private/kitemlistkeyboardsearchmanager.h

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

    </bug>

</bugzilla>