From: Roeland Jago Douma Date: Tue, 28 Jan 2020 11:07:53 +0000 (+0100) Subject: Am empty note is not a valid note X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~393 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd9b0cf23f25cdcfd25e48d72238f78e1686044d;p=nextcloud-desktop.git 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 --- 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);