mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 17:04:55 +02:00
Add guards around custom windows message handling
This commit is contained in:
parent
ad4956b2e2
commit
bc28bfa464
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,7 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) :
|
|||
}
|
||||
|
||||
bool AssignmentClient::nativeEventFilter(const QByteArray &eventType, void* msg, long* result) {
|
||||
#ifdef Q_OS_WIN
|
||||
if (eventType == "windows_generic_MSG") {
|
||||
MSG* message = (MSG*)msg;
|
||||
if (message->message == WM_CLOSE) {
|
||||
|
@ -124,6 +125,7 @@ bool AssignmentClient::nativeEventFilter(const QByteArray &eventType, void* msg,
|
|||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue