1
0
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:
Diadlo 2017-05-08 00:01:53 +03:00
parent 72bb70aa74
commit 4dd1fb5967
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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) {