From 6e69e39007455a816f00faca257ce050e206ec25 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 15 Aug 2020 15:16:06 +0200 Subject: [PATCH] Use static_cast instead for destroyed object --- src/device/devicemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);