mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-26 11:21:06 -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) ;
|
QString name= getParticipantName(gxs_id) ;
|
||||||
|
|
||||||
|
//std::cerr << "Received ChatLobby event " << (int)event_type << " for lobby " << (void*)lobbyId << std::endl;
|
||||||
switch (event_type)
|
switch (event_type)
|
||||||
{
|
{
|
||||||
case RsChatLobbyEventCode::CHAT_LOBBY_EVENT_PEER_LEFT:
|
case RsChatLobbyEventCode::CHAT_LOBBY_EVENT_PEER_LEFT:
|
||||||
|
|
|
@ -101,6 +101,7 @@ void PopupChatDialog::init(const ChatId &chat_id, const QString &title)
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
PopupChatDialog::~PopupChatDialog()
|
PopupChatDialog::~PopupChatDialog()
|
||||||
{
|
{
|
||||||
|
rsEvents->unregisterEventsHandler(mEventHandlerId_chat);
|
||||||
// save settings
|
// save settings
|
||||||
processSettings(false);
|
processSettings(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue