mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-07 17:51:42 -04:00
Use a blocking connection when updating the device list to prevent accessing deleted controllers
This commit is contained in:
1 parent
d9b0995b44
commit
cf383cacdd
1 file changed
+1
-1
@@ -106,7 +106,7 @@ static void OpenRGBDialogResourceManagerCallback(void * this_ptr, unsigned int u
|
||||
break;
|
||||
|
||||
case RESOURCEMANAGER_UPDATE_REASON_DEVICE_LIST_UPDATED:
|
||||
QMetaObject::invokeMethod(this_obj, "onDeviceListUpdated", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this_obj, "onDeviceListUpdated", Qt::BlockingQueuedConnection);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user