fixed bug causing crashes after closing a chat window

This commit is contained in:
csoler 2025-09-09 19:49:24 +02:00
parent 483a68000a
commit bb97e48db2
2 changed files with 2 additions and 0 deletions

View file

@ -854,6 +854,7 @@ void ChatLobbyDialog::handleLobbyEvent(RsChatLobbyEventCode event_type, const Rs
QString name= getParticipantName(gxs_id) ;
//std::cerr << "Received ChatLobby event " << (int)event_type << " for lobby " << (void*)lobbyId << std::endl;
switch (event_type)
{
case RsChatLobbyEventCode::CHAT_LOBBY_EVENT_PEER_LEFT:

View file

@ -101,6 +101,7 @@ void PopupChatDialog::init(const ChatId &chat_id, const QString &title)
/** Destructor. */
PopupChatDialog::~PopupChatDialog()
{
rsEvents->unregisterEventsHandler(mEventHandlerId_chat);
// save settings
processSettings(false);
}