When attaching multiple files from the same directory, the path is not remembered, so one has to navigate all the way from whatever the cwd happens to be. I also suppose that a similar thing happens when downloading these attachments.
diff --git a/src/Gui/AttachmentView.cpp b/src/Gui/AttachmentView.cpp index 4757cf5..39b288a 100644 --- a/src/Gui/AttachmentView.cpp +++ b/src/Gui/AttachmentView.cpp @@ -224,8 +224,13 @@ void AttachmentView::slotFileNameRequestedOnOpen(QString *fileName) void AttachmentView::slotFileNameRequested(QString *fileName) { - QString fileLocation = QDir(Common::writablePath(Common::LOCATION_DOWNLOAD)).filePath(*fileName); + static QDir lastDir = QDir(Common::writablePath(Common::LOCATION_DOWNLOAD)); + if (!lastDir.exists()) + lastDir = QDir(Common::writablePath(Common::LOCATION_DOWNLOAD)); + QString fileLocation = lastDir.filePath(*fileName); *fileName = QFileDialog::getSaveFileName(this, tr("Save Attachment"), fileLocation, QString(), 0, QFileDialog::HideNameFilterDetails); + if (!fileName->isEmpty()) + lastDir = QFileInfo(*fileName).absoluteDir(); } void AttachmentView::enableDownloadAgain()
Gerrit?
lacking ssh key atm.
Git commit ad89c0fa5c035774ca6b4eed9b72c62a5e506e21 by Jan Kundrát, on behalf of Thomas Lübking. Committed on 20/01/2016 at 10:06. Pushed by gerrit into branch 'master'. remember last dir for saving attachments Change-Id: I20322cc72d9aa2a742b951b49041807b5b739129 M +6 -1 src/Gui/AttachmentView.cpp http://commits.kde.org/trojita/ad89c0fa5c035774ca6b4eed9b72c62a5e506e21
Git commit 379fe2a8eb01eae06d77836de2689bc061fa729a by Jan Kundrát. Committed on 21/01/2016 at 12:03. Pushed by gerrit into branch 'master'. GUI: remember last dir when adding attachments Change-Id: Id54a718a77105ae4deffa31f87b3c0a98fa325f1 M +3 -1 src/Gui/ComposeWidget.cpp http://commits.kde.org/trojita/379fe2a8eb01eae06d77836de2689bc061fa729a