fix segfault that happens when account tab is closed

This commit is contained in:
RickyRister 2025-01-14 19:09:43 -08:00
parent d09b9eb533
commit beeff9f18a
19 changed files with 332 additions and 121 deletions

View file

@ -45,7 +45,7 @@ ChatView::ChatView(TabSupervisor *_tabSupervisor,
linkColor = palette().link().color();
}
userContextMenu = new UserContextMenu(tabSupervisor, this, game);
userContextMenu = new UserContextMenu(tabSupervisor, userlistProxy, this, game);
connect(userContextMenu, SIGNAL(openMessageDialog(QString, bool)), this, SIGNAL(openMessageDialog(QString, bool)));
ownUserName = userlistProxy->getOwnUsername();