From 857bb209fa52870d01aeaf04a0abfafb3755860c Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Tue, 20 Sep 2022 12:43:50 +0300 Subject: Add windows bluetooth discovery worker metatype registration The crash fix for QTBUG-106029 introduced a shared_ptr as a queued method invocation parameter. The missing registration didn't cause any issues on the 'dev' branch, but does cause on earlier branches. Fixes: QTBUG-106654 Change-Id: If03b020877e4eeaacc1db25b3854ba0c6b5447d0 Reviewed-by: Ivan Solovev (cherry picked from commit 72af5c8b523e3bd993bb6809128a119b1ec43c83) Reviewed-by: Qt Cherry-pick Bot --- src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp index 37659d4b..3274cbb2 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp @@ -294,6 +294,7 @@ QWinRTBluetoothDeviceDiscoveryWorker::QWinRTBluetoothDeviceDiscoveryWorker( qRegisterMetaType(); qRegisterMetaType(); qRegisterMetaType(); + qRegisterMetaType>(); m_classicWatcher = createDeviceWatcher(ClassicDeviceSelector, ClassicWatcherId); // For LE scan use DeviceWatcher to handle only paired devices. -- cgit v1.2.1