Browse Source

Merge pull request #5499

Teemu Ikonen (1):
      fix(ui): provide context when emitting friendWidgetRenamed()
reviewable/pr5504/r1
sudden6 7 years ago
parent
commit
f5aa07f569
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 2
      src/widget/friendwidget.cpp

2
src/widget/friendwidget.cpp

@ -71,7 +71,7 @@ FriendWidget::FriendWidget(std::shared_ptr<FriendChatroom> chatroom, bool compac @@ -71,7 +71,7 @@ FriendWidget::FriendWidget(std::shared_ptr<FriendChatroom> chatroom, bool compac
connect(nameLabel, &CroppingLabel::editFinished, frnd, &Friend::setAlias);
// update on changes of the displayed name
connect(frnd, &Friend::displayedNameChanged, nameLabel, &CroppingLabel::setText);
connect(frnd, &Friend::displayedNameChanged, [this](const QString /* &newName */){emit friendWidgetRenamed(this);});
connect(frnd, &Friend::displayedNameChanged, this, [this](const QString /* &newName */){emit friendWidgetRenamed(this);});
connect(chatroom.get(), &FriendChatroom::activeChanged, this, &FriendWidget::setActive);
statusMessageLabel->setTextFormat(Qt::PlainText);
}

Loading…
Cancel
Save