mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-19 12:24:41 -04:00
Fix the temporary filename template so that the original suffix is preserved.
This commit is contained in:
parent
eb22f0a2d8
commit
e4758c1984
1 changed files with 1 additions and 1 deletions
|
@ -661,7 +661,7 @@ void EditEntryWidget::openAttachment(const QModelIndex& index)
|
|||
QByteArray attachmentData = m_entryAttachments->value(filename);
|
||||
|
||||
// tmp file will be removed once the database (or the application) has been closed
|
||||
QString tmpFileTemplate = QDir::temp().absoluteFilePath(filename);
|
||||
QString tmpFileTemplate = QDir::temp().absoluteFilePath(QString("XXXXXX.").append(filename));
|
||||
QTemporaryFile* file = new QTemporaryFile(tmpFileTemplate, this);
|
||||
|
||||
if (!file->open()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue