Bug 405976 - Filename disappears when switching folders in the copy/move/link dialog
Summary: Filename disappears when switching folders in the copy/move/link dialog
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 18.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-28 21:43 UTC by Thomas Surrel
Modified: 2020-06-30 12:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Surrel 2019-03-28 21:43:50 UTC
SUMMARY
When trying to copy/move/link an image from Gwenview, the 'Name' field in the file dialog, which by default get set to the current file name of the image, will be blanked out if I try to change directory. This only happens if the initial directory does not contain that file to start with, but this is a pretty common case since Gwenview conveniently remembers the last place you copied an image to.

STEPS TO REPRODUCE
1. Navigate to a folder with an image
2. Hit F7 to copy that image, select another directory than the current one.
3. Now try to copy again that image (or another image from the current folder), the default name is set to the current image and the default directory to the directory selected in step 2.
4. Try to switch to another directory

OBSERVED RESULT
The 'Name' field in the dialog box is reset. The file name has to by typed entirely again.

EXPECTED RESULT
The 'Name' field is unmodified when switching directories.


This is maybe be a Qt bug.
Comment 1 Dan Shelley 2019-04-04 12:04:42 UTC
Thank you for your report! I was able to confirm this issue as well but I believe it's an upstream issue. I've used different applications that use the same "Save File" dialog and the issue is still present in those applications.
Comment 2 Patrick Silva 2019-04-27 17:39:26 UTC
I can't reproduce with gwenview 19.04.
After the step 4, the file name is unselected, not cleared.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Comment 3 Thomas Surrel 2020-06-30 12:36:24 UTC
I can still see this bug happening, it's even easier to reproduce:

STEPS TO REPRODUCE
1. Navigate to a folder with an image
2. Hit F7 to copy that image, select another directory than the current one.

OBSERVED RESULT
The 'Name' field in the dialog box is reset. The file name has to by typed entirely again.

EXPECTED RESULT
The 'Name' field is unmodified when switching directories.

Operating System: Arch Linux 
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0