From bd9b0cf23f25cdcfd25e48d72238f78e1686044d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 28 Jan 2020 12:07:53 +0100 Subject: [PATCH] Am empty note is not a valid note Do not show the note edit field for empty new shares. Signed-off-by: Roeland Jago Douma --- src/gui/sharelinkwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index 62ed18da8..8effcda20 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -190,7 +190,7 @@ void ShareLinkWidget::setupUiOptions() _noteLinkAction = _linkContextMenu->addAction(tr("Add note to recipient")); _noteLinkAction->setCheckable(true); - if (_linkShare->getNote().isSimpleText()) { + if (_linkShare->getNote().isSimpleText() && !_linkShare->getNote().isEmpty()) { _ui->textEdit_note->setText(_linkShare->getNote()); _noteLinkAction->setChecked(true); showNoteOptions(true); -- 2.30.2