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:
parent
4dd1fb5967
commit
4f25e01b96
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user