From b9944684c1ca56a24b527772d3543bc3535c960a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Feb 2015 14:39:27 +0000 Subject: fix for a crash in Jabber user info dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@12246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_thread.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 56dec1aa27..3dd2f90031 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -497,15 +497,13 @@ recvRest: if (!info.bIsReg) { m_iqManager.ExpireAll(); - m_bJabberOnline = FALSE; + m_bJabberOnline = false; info.zlibUninit(); EnableMenuItems(FALSE); RebuildInfoFrame(); - if (m_hwndJabberChangePassword) { - //DestroyWindow(hwndJabberChangePassword); + if (m_hwndJabberChangePassword) // Since this is a different thread, simulate the click on the cancel button instead SendMessage(m_hwndJabberChangePassword, WM_COMMAND, MAKEWORD(IDCANCEL, 0), 0); - } // Quit all chatrooms (will send quit message) LISTFOREACH(i, this, LIST_CHATROOM) @@ -514,9 +512,7 @@ recvRest: ListRemoveList(LIST_CHATROOM); ListRemoveList(LIST_BOOKMARK); - //UI_SAFE_NOTIFY(m_pDlgJabberJoinGroupchat, WM_JABBER_CHECK_ONLINE); UI_SAFE_NOTIFY_HWND(m_hwndJabberAddBookmark, WM_JABBER_CHECK_ONLINE); - //UI_SAFE_NOTIFY(m_pDlgBookmarks, WM_JABBER_CHECK_ONLINE); WindowNotify(WM_JABBER_CHECK_ONLINE); // Set status to offline -- cgit v1.2.3