<?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>508572</bug_id>
          
          <creation_ts>2025-08-21 18:19:05 +0000</creation_ts>
          <short_desc>Deleting cloned panel with a sticky note on it permanently destroys contents of *original* panel&apos;s sticky note</short_desc>
          <delta_ts>2025-08-26 14:36:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Panel</component>
          <version>6.4.80</version>
          <rep_platform>KDE Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=453673</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VHI</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>kdedev</cc>
    
    <cc>niccolo.venerandi</cc>
    
    <cc>niccolo</cc>
    
    <cc>notmart</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kdeplasma-addons/-/commit/865efe1aca54fe167b3f4317ba303d0b5ce6756b</cf_commitlink>
          <cf_versionfixedin>6.4.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2449334</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-21 18:19:05 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Put a Sticky Note widget on your panel
2. Write lots of things in it that would be extremely disruptive or saddening to lose
3. Right-click on an empty area of the panel &gt; Show Panel Configuration
4. Clone panel &gt; click on one of the big arrows to clone the panel there
5. Delete the new panel
6. Restart plasmashell
7. Click on the Sticky Note widget on the *original* panel


OBSERVED RESULT
The sticky note is empty!

Fortunately I had a backup from a few days ago. However, this is still data loss, and if without that backup it would have been irretrievable data loss.


EXPECTED RESULT
The sticky note&apos;s text is still there.


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2025-08-21
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Kernel Version: 6.16.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics


ADDITIONAL INFORMATION
Here&apos;s what happened: the cloned sticky note retained its config data, so it was pointing at a specific file in ~/.local/share/plasma_notes/ — the same file that the old sticky note is pointing at! When the cloned panel was deleted, the cloned Sticky Note widget deleted the underlying file that both Sticky Note widgets were using. This made it unavailable to the original panel too, but only after restarting plasmashell or the system. At that point, data loss has occurred.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449336</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-21 18:23:35 +0000</bug_when>
    <thetext>Likely caused by https://invent.kde.org/plasma/kdeplasma-addons/-/commit/98b2cb809c3a4bf7ebd3b4a318a1aa88a465f0d5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449337</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-21 18:24:08 +0000</bug_when>
    <thetext>Side note: it would be good to move the underlying file to the trash rather than deleting it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449340</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-21 18:25:28 +0000</bug_when>
    <thetext>Which would likely represent a fix for Bug 453673.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449456</commentid>
    <comment_count>4</comment_count>
    <who name="Niccolò Venerandi">niccolo</who>
    <bug_when>2025-08-22 09:15:59 +0000</bug_when>
    <thetext>https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/897 would fix this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2450358</commentid>
    <comment_count>5</comment_count>
    <who name="Niccolò Venerandi">niccolo</who>
    <bug_when>2025-08-26 08:10:22 +0000</bug_when>
    <thetext>Git commit 04badef38de928e8386c93b044fd9bd54e95c0bd by Niccolò Venerandi.
Committed on 26/08/2025 at 08:10.
Pushed by niccolove into branch &apos;master&apos;.

Deduplicate multiple applets asking to use the same note file

This also trashes notes instead of deleting them, which
makes them recoverable.
Related: bug 453673

M  +1    -0    applets/notes/CMakeLists.txt
M  +1    -1    applets/notes/abstractnoteloader.h
M  +29   -6    applets/notes/filesystemnoteloader.cpp
M  +2    -1    applets/notes/filesystemnoteloader.h
M  +2    -2    applets/notes/notemanager.cpp
M  +1    -1    applets/notes/notemanager.h
M  +1    -1    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/04badef38de928e8386c93b044fd9bd54e95c0bd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2450359</commentid>
    <comment_count>6</comment_count>
    <who name="Niccolò Venerandi">niccolo</who>
    <bug_when>2025-08-26 08:13:25 +0000</bug_when>
    <thetext>Git commit 865efe1aca54fe167b3f4317ba303d0b5ce6756b by Niccolò Venerandi.
Committed on 26/08/2025 at 08:13.
Pushed by niccolove into branch &apos;Plasma/6.4&apos;.

Deduplicate multiple applets asking to use the same note file

This also trashes notes instead of deleting them, which
makes them recoverable.
Related: bug 453673

Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Nate Graham &lt;nate@kde.org&gt;

M  +2    -0    applets/notes/CMakeLists.txt
M  +1    -1    applets/notes/abstractnoteloader.h
M  +29   -6    applets/notes/filesystemnoteloader.cpp
M  +2    -1    applets/notes/filesystemnoteloader.h
M  +2    -2    applets/notes/notemanager.cpp
M  +1    -1    applets/notes/notemanager.h
M  +1    -1    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/865efe1aca54fe167b3f4317ba303d0b5ce6756b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>