We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c782f27 commit fd5a1c8Copy full SHA for fd5a1c8
src/native/win/qgswinnative.cpp
@@ -163,9 +163,18 @@ QgsNative::NotificationResult QgsWinNative::showDesktopNotification( const QStri
163
return result;
164
}
165
166
-bool QgsWinNativeEventFilter::nativeEventFilter( const QByteArray &, void *message, long * )
+bool QgsWinNativeEventFilter::nativeEventFilter( const QByteArray &eventType, void *message, long * )
167
{
168
+ static const QByteArray sWindowsGenericMSG{ "windows_generic_MSG" };
169
+ if ( eventType != sWindowsGenericMSG )
170
+ return false;
171
+
172
MSG *pWindowsMessage = static_cast<MSG *>( message );
173
+ if ( pWindowsMessage->message != WM_DEVICECHANGE )
174
+ {
175
176
+ }
177
178
unsigned int wParam = pWindowsMessage->wParam;
179
if ( wParam == DBT_DEVICEARRIVAL || wParam == DBT_DEVICEREMOVECOMPLETE )
180
0 commit comments