diff --git a/src/gui/entry/EntryAttachmentsWidget.cpp b/src/gui/entry/EntryAttachmentsWidget.cpp index c1688153a5..784c1f0202 100644 --- a/src/gui/entry/EntryAttachmentsWidget.cpp +++ b/src/gui/entry/EntryAttachmentsWidget.cpp @@ -175,7 +175,7 @@ void EntryAttachmentsWidget::newAttachments() return; } - NewEntryAttachmentsDialog newEntryDialog{m_entryAttachments, this}; + NewEntryAttachmentsDialog newEntryDialog{m_entryAttachments}; if (newEntryDialog.exec() == QDialog::Accepted) { emit widgetUpdated(); } @@ -191,7 +191,7 @@ void EntryAttachmentsWidget::previewAttachments() return; } - PreviewEntryAttachmentsDialog previewDialog{m_entryAttachments, this}; + PreviewEntryAttachmentsDialog previewDialog{m_entryAttachments}; previewDialog.setAttachment(m_attachmentsModel->keyByIndex(index)); previewDialog.exec(); diff --git a/src/gui/entry/PreviewEntryAttachmentsDialog.cpp b/src/gui/entry/PreviewEntryAttachmentsDialog.cpp index 51d1180611..91ddb16737 100644 --- a/src/gui/entry/PreviewEntryAttachmentsDialog.cpp +++ b/src/gui/entry/PreviewEntryAttachmentsDialog.cpp @@ -37,6 +37,7 @@ PreviewEntryAttachmentsDialog::PreviewEntryAttachmentsDialog(QPointertitleEdit->setReadOnly(true); m_ui->attachmentTextEdit->setReadOnly(true); + m_ui->errorLabel->setVisible(false); m_ui->dialogButtons->clear(); m_ui->dialogButtons->addButton(QDialogButtonBox::Close);