mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-22 22:04:53 -04:00
fixed bug causing crashes after closing a chat window
This commit is contained in:
parent
483a68000a
commit
bb97e48db2
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue