Bug 159144

Summary: Save as dialog for attachments starts at root folder
Product: [Unmaintained] kmail Reporter: Alex Merry <alex.merry>
Component: messageviewerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: minor CC: erik, jjm, kdebugs, langec, oeffentlich
Priority: NOR    
Version: SVN trunk (KDE 4)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Merry 2008-03-11 16:51:35 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                Linux

When saving an attachment, the save dialog always defaults to the root folder, regardless of the last folder used.

It should either default to the home folder, or (preferably) to the last folder an attachment was saved in.
Comment 1 Thomas McGuire 2008-03-13 18:27:48 UTC
Yes, seems to be a regression.
Comment 2 Manuel Schmid 2009-01-15 12:06:44 UTC
I was just about to report the same bug, as I have saved a lot of attachments lately. What I noticed is that if more than one attachment is saved with the action ‘save all attachments’, it seems to remember the last folder, but if only one attachment is saved, it doesn’t.
Comment 3 Jonathan Marten 2009-02-24 15:18:33 UTC
*** Bug 184748 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Marten 2009-02-24 15:18:53 UTC
*** Bug 183541 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Marten 2009-02-24 15:28:56 UTC
Checked with current trunk (r930794).  Both the single "Save attachment" dialogue and the "Save Attachments" (multiple dialogue) remember the directory where they were last used in in the current KMail session, but the default place is the current directory where KMail was started.  Have not observed "root" being the default, unless KMail is started there of course.
Comment 6 Alex Merry 2009-02-24 19:41:21 UTC
Yes, it's working for me in trunk now.
Comment 7 Gunter Ohrner 2009-02-24 22:05:38 UTC
Would be nice if the fix could be backported to KDE 4.2.x.
Comment 8 Jonathan Marten 2009-04-10 11:49:05 UTC
SVN commit 951805 by marten:

Use the KFileDialog keyword syntax to remember the attachment save location,
for either single or multiple attachments, persistently over KMail sessions.

Also use the <filename> message tags for the file overwrite warnings.

Not to be backported to 4.2 branch, because the KFileDialog support (r951469)
is not present.

CCBUG:159144


 M  +11 -9     kmcommands.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=951805
Comment 9 Christophe Marin 2009-05-25 16:06:44 UTC
*** Bug 194041 has been marked as a duplicate of this bug. ***