Skip to content

Commit

Permalink
Fix logic error when creating new attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Jan 12, 2025
1 parent 53f4d4e commit 7062a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/entry/NewEntryAttachmentsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void NewEntryAttachmentsDialog::saveAttachment()
auto text = m_ui->attachmentTextEdit->toPlainText().toUtf8();

QString error;
if (validateFileName(fileName, error)) {
if (!validateFileName(fileName, error)) {
QMessageBox::warning(this, tr("Save attachment"), error);
return;
}
Expand Down

0 comments on commit 7062a24

Please sign in to comment.