summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-01 21:13:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-01 21:13:22 +0300
commit7585b2a652446ce72a1903c5fa91cd983ce37782 (patch)
treeabe94c0a836edc800a4b1adce7f60c036e7b5b33 /plugins/TabSRMM
parent2dd30879f3966d99aeefc3354f06dc3e766364d0 (diff)
attempt to fix a problem with closing chats
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp6
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp4
2 files changed, 1 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index 6864cfb9d9..81c747b439 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -3027,10 +3027,6 @@ LABEL_SHOWWINDOW:
break;
case WM_CLOSE:
- if (m_bExiting)
- return 0;
- m_bExiting = true;
-
if (wParam == 0 && lParam == 0) {
if (PluginConfig.m_EscapeCloses == 1) {
SendMessage(m_pContainer->hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
@@ -3120,7 +3116,7 @@ LABEL_SHOWWINDOW:
SendMessage(m_pContainer->hwnd, WM_CLOSE, 0, 1);
else {
PostMessage(m_pContainer->hwnd, WM_SIZE, 0, 0);
- Close();
+ DestroyWindow(m_hwnd);
}
}
return 0;
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 08c507c606..7739c32e65 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -3131,10 +3131,6 @@ quote_from_last:
return 0;
case WM_CLOSE:
- if (m_bExiting)
- return 0;
- m_bExiting = true;
-
// esc handles error controls if we are in error state (error controls visible)
if (wParam == 0 && lParam == 0 && m_dwFlags & MWF_ERRORSTATE) {
SendMessage(m_hwnd, DM_ERRORDECIDED, MSGERROR_CANCEL, 0);