mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
@@ -671,6 +671,14 @@ void EditEntryWidget::openAttachment(const QModelIndex& index)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!file->flush()) {
|
||||||
|
MessageBox::warning(this, tr("Error"),
|
||||||
|
tr("Unable to save the attachment:\n").append(file->errorString()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
file->close();
|
||||||
|
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(file->fileName()));
|
QDesktopServices::openUrl(QUrl::fromLocalFile(file->fileName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user