Bug 448923

Summary: Pasting text with a newline at the beginning will paste nothing into the filename field
Product: [Frameworks and Libraries] frameworks-kio Reporter: Sam Dinner <samdinner>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: a.samirh78, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.86.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A text file that contains the text that will trigger the bug.
A recording of the bug occurring.

Description Sam Dinner 2022-01-21 20:29:07 UTC
Created attachment 145727 [details]
A text file that contains the text that will trigger the bug.

SUMMARY
Pasting text with a newline at the beginning will paste nothing into the filename field on save dialogs.

STEPS TO REPRODUCE
1. Copy the all text in the attached bug.txt file.
2. Paste it into the filename field.

OBSERVED RESULT
The filename field is blank.

EXPECTED RESULT
The filename field should contain "filename".

SOFTWARE/OS VERSIONS
Linux: Ubuntu 21.10
KDE Plasma Version: 5.22.6
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I've attached a recording of the bug occurring.
Comment 1 Sam Dinner 2022-01-21 20:29:21 UTC
Created attachment 145728 [details]
A recording of the bug occurring.
Comment 2 Ahmad Samir 2022-04-19 12:01:51 UTC
This looks like the GTK file picker (because the KDE one has the Name: field at the bottom). So not our bug. :)