diff --git a/src/widget/contentdialog.cpp b/src/widget/contentdialog.cpp index c79679f7e..441b43c29 100644 --- a/src/widget/contentdialog.cpp +++ b/src/widget/contentdialog.cpp @@ -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) {