diff --git a/src/device/devicemanager.cpp b/src/device/devicemanager.cpp index e97b9d698..71721461a 100644 --- a/src/device/devicemanager.cpp +++ b/src/device/devicemanager.cpp @@ -217,7 +217,7 @@ void DeviceManager::ListerClosed() { void DeviceManager::DeviceDestroyed() { - ConnectedDevice *device = qobject_cast(sender()); + ConnectedDevice *device = static_cast(sender()); if (!wait_for_exit_.contains(device) || !backend_) return; wait_for_exit_.removeAll(device);