1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-13 04:15:43 +02:00

Fix display of deleted note.

Even after removing note from share link,
the previous text was being displayed.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2021-09-30 20:50:31 +02:00 committed by Matthieu Gallien (Rebase PR Action)
parent 72c91362f2
commit ab524d2392

View File

@ -441,7 +441,6 @@ void ShareLinkWidget::toggleNoteOptions(const bool enable)
_ui->noteLabel->setVisible(enable);
_ui->textEdit_note->setVisible(enable);
_ui->confirmNote->setVisible(enable);
_ui->textEdit_note->setText(enable && _linkShare ? _linkShare->getNote() : QString());
if (!enable && _linkShare && !_linkShare->getNote().isEmpty()) {