From cff845ffa724b7cbfd6792b5f4b60bdb5339d0ca Mon Sep 17 00:00:00 2001 From: jenli669 Date: Sat, 29 Jun 2019 09:14:23 +0200 Subject: [PATCH] refactor(widget): make AboutFriendForm use FriendWidget as parent --- src/widget/friendwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp index 1f3cd71aa..53fbb354e 100644 --- a/src/widget/friendwidget.cpp +++ b/src/widget/friendwidget.cpp @@ -287,7 +287,7 @@ void FriendWidget::showDetails() const auto frnd = chatroom->getFriend(); const auto iabout = new AboutFriend(frnd, &Settings::getInstance()); std::unique_ptr about = std::unique_ptr(iabout); - const auto aboutUser = new AboutFriendForm(std::move(about), Widget::getInstance()); + const auto aboutUser = new AboutFriendForm(std::move(about), this); connect(aboutUser, &AboutFriendForm::histroyRemoved, this, &FriendWidget::friendHistoryRemoved); aboutUser->show(); }