<?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>510100</bug_id>
          
          <creation_ts>2025-09-30 15:37:38 +0000</creation_ts>
          <short_desc>Cannot select a previously selected application after de-selecting it by clicking in the empty area below the list items</short_desc>
          <delta_ts>2025-10-14 12:19:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>plasma-systemmonitor</product>
          <component>general</component>
          <version>6.4.90</version>
          <rep_platform>Arch Linux</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="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="KSysGuard Developers">ksysguard-bugs</assigned_to>
          <cc>ahiemstra</cc>
    
    <cc>chocolateimage</cc>
    
    <cc>kdedev</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/c2191417efcd8b10c33df49be7946acb366c42ba</cf_commitlink>
          <cf_versionfixedin>6.5.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2458678</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2025-09-30 15:37:38 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. open System Monitor
2. click on &quot;Applications&quot; in the left side
3. select any application
4. click on empty space below the applications list - the app selected in the step 3 is deselected
5. click on the same application selected in the step 3

OBSERVED RESULT
the clicked app is not selected in the last step

EXPECTED RESULT
the app clicked in the last step is selected

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.90
KDE Frameworks Version: 6.18.0
Qt Version: 6.10.0
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2458680</commentid>
    <comment_count>1</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-09-30 15:41:18 +0000</bug_when>
    <thetext>Confirmed on today&apos;s git-master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2459867</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-10-06 14:54:48 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-systemmonitor/-/merge_requests/389</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2460042</commentid>
    <comment_count>3</comment_count>
    <who name="Arjen Hiemstra">ahiemstra</who>
    <bug_when>2025-10-07 08:04:07 +0000</bug_when>
    <thetext>Git commit 1197130389ec59942489a367e6a1226728a6e8bd by Arjen Hiemstra.
Committed on 06/10/2025 at 14:54.
Pushed by ahiemstra into branch &apos;master&apos;.

table: Clear current index if selection was cleared

Otherwise we end up in a situation where current and selected are not in
sync, resulting in problems re-selecting the current row.

M  +21   -0    src/table/BaseTableView.qml

https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/1197130389ec59942489a367e6a1226728a6e8bd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2460119</commentid>
    <comment_count>4</comment_count>
    <who name="Arjen Hiemstra">ahiemstra</who>
    <bug_when>2025-10-07 13:03:02 +0000</bug_when>
    <thetext>*** Bug 505858 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2461850</commentid>
    <comment_count>5</comment_count>
    <who name="Arjen Hiemstra">ahiemstra</who>
    <bug_when>2025-10-14 12:19:44 +0000</bug_when>
    <thetext>Git commit c2191417efcd8b10c33df49be7946acb366c42ba by Arjen Hiemstra.
Committed on 14/10/2025 at 12:13.
Pushed by ahiemstra into branch &apos;Plasma/6.5&apos;.

table: Clear current index if selection was cleared

Otherwise we end up in a situation where current and selected are not in
sync, resulting in problems re-selecting the current row.


(cherry picked from commit 1197130389ec59942489a367e6a1226728a6e8bd)

Co-authored-by: Arjen Hiemstra &lt;ahiemstra@heimr.nl&gt;

M  +21   -0    src/table/BaseTableView.qml

https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/c2191417efcd8b10c33df49be7946acb366c42ba</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>