Skip to content
Permalink
Browse files

Merge branch 'knu-fix_opening_attachment'

  • Loading branch information...
debfx committed Dec 22, 2014
2 parents eb22f0a + e4758c1 commit 835c411d1256ee3527c38916e1fd7bd323eeb799
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/entry/EditEntryWidget.cpp
@@ -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()) {

0 comments on commit 835c411

Please sign in to comment.
You can’t perform that action at this time.