1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(widget): make AboutFriendForm use FriendWidget as parent

This commit is contained in:
jenli669 2019-06-29 09:14:23 +02:00
parent 09f37a97f9
commit cff845ffa7
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -287,7 +287,7 @@ void FriendWidget::showDetails()
const auto frnd = chatroom->getFriend();
const auto iabout = new AboutFriend(frnd, &Settings::getInstance());
std::unique_ptr<IAboutFriend> about = std::unique_ptr<IAboutFriend>(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();
}