Bug 516062

Summary: KDE Save Dialog Overwrites Manually Pasted Filename After Refresh
Product: [Frameworks and Libraries] frameworks-kio Reporter: MisterE <edwin>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: akselmo, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: recording of the issue

Description MisterE 2026-02-15 22:57:32 UTC
Created attachment 189627 [details]
recording of the issue

SUMMARY
When opening the KDE “Save As” dialog, a manually pasted filename can be overwritten by the dialog’s automatic refresh shortly after it appears.
After the refresh completes, the filename field is reset to the default suggested name, discarding the user’s pasted input.


STEPS TO REPRODUCE
  * mkdir ~/example; cd ~/example
  * Create many files (large directories or slow/network mounts make the issue easier to reproduce):

  for i in {1..8000}; do
      size=$((RANDOM + 1))   # random grootte tussen 1 en 32768 bytes
      dd if=/dev/urandom of="file_$i.webp" bs=$size count=1 status=none
  done


  * Open https://www.opensuse.org/
  * Right-click an image → “Save Image As” → save it to ~/example (so the browser remembers this folder)
  * Copy some text to the clipboard, e.g. wanted_filename
  * Right-click the image again → “Save Image As”
  * Immediately press Ctrl+V to replace the suggested filename
  * Wait for the dialog refresh to complete → the filename field is reset to the default name

OBSERVED RESULT
See the included movie

EXPECTED RESULT
Filename field is reset to the default name

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 16.0
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.12.0-160000.9-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Mesa Intel® UHD Graphics 620


ADDITIONAL INFORMATION
Comment 1 Akseli Lahtinen 2026-02-16 10:06:06 UTC
I can sort of reproduce. We should skip modifying it on refresh when user has interacted with it.

Operating System: KDE Linux 2026-02-16
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 6.18.9-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600