Skip to content

Commit

Permalink
Fix display of deleted note.
Browse files Browse the repository at this point in the history
Even after removing note from share link,
the previous text was being displayed.

Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila authored and mgallien committed Oct 28, 2021
1 parent 72c9136 commit ab524d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/gui/sharelinkwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit ab524d2

Please sign in to comment.