mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Merge branch 'knu-fix_opening_attachment'
https://github.com/keepassx/keepassx/pull/71
This commit is contained in:
commit
835c411d12
@ -661,7 +661,7 @@ void EditEntryWidget::openAttachment(const QModelIndex& index)
|
|||||||
QByteArray attachmentData = m_entryAttachments->value(filename);
|
QByteArray attachmentData = m_entryAttachments->value(filename);
|
||||||
|
|
||||||
// tmp file will be removed once the database (or the application) has been closed
|
// 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);
|
QTemporaryFile* file = new QTemporaryFile(tmpFileTemplate, this);
|
||||||
|
|
||||||
if (!file->open()) {
|
if (!file->open()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user