Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2015-02-21 00:44:36 +0300
committerMikkel Krautz <mikkel@krautz.dk>2015-04-22 22:03:48 +0300
commit3018c5e90a58230b56aa70b5e58d6ae06550cc1c (patch)
tree99b2cc165c2c25282bb15260624e2e530045dd8b /overlay
parent0e358bff809722e1072b27ad08b952c4da671b7a (diff)
Handle WM_CLOSE messages in overlay helper.
When Qt terminates a QProcess via the terminate() method, it sends a WM_CLOSE message. However, the overlay helper did not know of WM_CLOSE, so it would quietly ignore it. This commit teaches the overlay helper to exit on WM_CLOSE.
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 592ac7b9b..e9eeb4370 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -476,6 +476,11 @@ extern "C" __declspec(dllexport) int __cdecl OverlayHelperProcessMain(unsigned i
break;
}
+ if (msg.message == WM_CLOSE) {
+ retval = 0;
+ break;
+ }
+
TranslateMessage(&msg);
DispatchMessage(&msg);
}