Bug 407634

Summary: ksavedialog defaults to save on enter
Product: [Frameworks and Libraries] frameworks-kio Reporter: Martin van Es <bugs>
Component: Open/save dialogsAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs
Priority: NOR    
Version: 5.57.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin van Es 2019-05-17 09:10:03 UTC
Since last update ksavedialog <enter> defaults to triggering save instead of entering selected directory. This results in saving the file in the wrong place.

STEPS TO REPRODUCE
1. kdialog --getsavefilename ~
2. Set save name to foobar.tst
3. Select subdirectory with mouse
4. Press enter

OBSERVED RESULT
/home/<user>/foobar.tst is returned as kdialog result

EXPECTED RESULT
Entering the subdirectory to further specify the location of the save file until the 'save' button is clicked with the mouse (or by tab-navigating to it).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
This used to work as expected, so I see this as a regression of https://bugs.kde.org/show_bug.cgi?id=205781
Comment 1 Martin van Es 2019-06-26 07:37:44 UTC
It seems fixed for the "kdialog --getsavefilename ~" example, but not for "Open Attachment, Save As..." from Kmail e.g.
Comment 2 Martin van Es 2019-06-26 07:38:15 UTC
Fixed in 5.16.2, I meant to add.
Comment 3 Martin van Es 2019-07-12 08:05:50 UTC
Since ksavedialog does not have the bug anymore, I reported the bug more specifically to kmail in https://bugs.kde.org/show_bug.cgi?id=409738