summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/chat/window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp6
1 files changed, 1 insertions, 5 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;