mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Remove useless connection
This connection exists in Widget
This commit is contained in:
parent
72bb70aa74
commit
4dd1fb5967
|
@ -168,11 +168,9 @@ FriendWidget* ContentDialog::addFriend(const Friend* frnd)
|
|||
FriendWidget* friendWidget = new FriendWidget(frnd, compact);
|
||||
friendLayout->addFriendWidget(friendWidget, frnd->getStatus());
|
||||
|
||||
ChatForm* form = frnd->getChatForm();
|
||||
connect(frnd, &Friend::aliasChanged, this, &ContentDialog::updateFriendWidget);
|
||||
connect(friendWidget, &FriendWidget::chatroomWidgetClicked, this, &ContentDialog::activate);
|
||||
connect(friendWidget, &FriendWidget::newWindowOpened, this, &ContentDialog::openNewDialog);
|
||||
connect(friendWidget, &FriendWidget::chatroomWidgetClicked, form, &ChatForm::focusInput);
|
||||
|
||||
ContentDialog* lastDialog = getFriendDialog(friendId);
|
||||
if (lastDialog) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user