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

refactor: Add nullptr check on getChatForm value

This commit is contained in:
Diadlo 2017-07-28 10:58:43 +03:00
parent 4dd1fb5967
commit 4f25e01b96
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -359,7 +359,10 @@ void FriendWidget::search(const QString& searchString, bool hide)
void FriendWidget::setChatForm(ContentLayout* contentLayout)
{
frnd->getChatForm()->show(contentLayout);
ChatForm* form = frnd->getChatForm();
if (form) {
form->show(contentLayout);
}
}
void FriendWidget::resetEventFlags()