Bug 200554

Summary: Import metadata: More sensitive choice of directory in file-open dialog [patch]
Product: [Applications] digikam Reporter: Michael G. Hansen <mike>
Component: Plugin-Generic-MetadataEditAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 0.7.0
Attachments: Patch agains r998300, uses directory of first image for file-open dialog
Remember last chosen directory, use directory of first image at first attempt

Description Michael G. Hansen 2009-07-17 14:23:35 UTC
Version:           0.5 (using KDE 4.2.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

The file-open dialog used when importing EXIF/IPTC/XMP metadata always starts in the users home directory. I think a more sensible choice would be the directory containing the image(s) to which the metadata should be imported. The home-directory is still easily reachable using the "Home" button in the file-open dialog.

The attached patch sets the starting directory of the file-open dialog to the directory containing the first of the selected images.

Note: I used "KUrl::upUrl()" to get the directory containing the image, is this the recommended way to remove the filename from a URL?
Comment 1 Michael G. Hansen 2009-07-17 14:24:42 UTC
Created attachment 35415 [details]
Patch agains r998300, uses directory of first image for file-open dialog
Comment 2 Michael G. Hansen 2009-09-21 19:03:52 UTC
Created attachment 37102 [details]
Remember last chosen directory, use directory of first image at first attempt

In response to bug #207997: Change the behavior to initially use the directory of the first selected image, and re-use the selected directory on subsequent usage of the import tool. The directory is stored only once for Xmp, Iptc and Exif, not independently.
Comment 3 caulier.gilles 2009-09-22 06:20:09 UTC
patch is ok for me to be applied on svn

gilles caulier
Comment 4 caulier.gilles 2009-09-22 07:53:34 UTC
Michael,

Do yo have an svn account now?

Gilles
Comment 5 caulier.gilles 2009-09-23 12:17:27 UTC
SVN commit 1027105 by cgilles:

apply patch #37102 from Michael G. Hansen to remember image selected between each metadata import session.
BUGS: 200554
BUGS: 207997


 M  +28 -4     plugin_metadataedit.cpp  
 M  +6 -0      plugin_metadataedit.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1027105