mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix usage of LastAttachmentDir in entry attachments
This commit is contained in:
parent
f141325258
commit
2987895370
@ -727,7 +727,9 @@ void EditEntryWidget::insertAttachment()
|
||||
return;
|
||||
}
|
||||
|
||||
m_entryAttachments->set(QFileInfo(filename).fileName(), data);
|
||||
const QFileInfo fInfo(filename);
|
||||
config()->set("LastAttachmentDir", fInfo.absolutePath());
|
||||
m_entryAttachments->set(fInfo.fileName(), data);
|
||||
}
|
||||
|
||||
void EditEntryWidget::saveCurrentAttachment()
|
||||
@ -757,6 +759,7 @@ void EditEntryWidget::saveCurrentAttachment()
|
||||
showMessage(tr("Unable to save the attachment:\n").append(file.errorString()), MessageWidget::Error);
|
||||
return;
|
||||
}
|
||||
config()->set("LastAttachmentDir", QFileInfo(savePath).absolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user