Use static_cast instead for destroyed object
This commit is contained in:
@@ -217,7 +217,7 @@ void DeviceManager::ListerClosed() {
|
|||||||
|
|
||||||
void DeviceManager::DeviceDestroyed() {
|
void DeviceManager::DeviceDestroyed() {
|
||||||
|
|
||||||
ConnectedDevice *device = qobject_cast<ConnectedDevice*>(sender());
|
ConnectedDevice *device = static_cast<ConnectedDevice*>(sender());
|
||||||
if (!wait_for_exit_.contains(device) || !backend_) return;
|
if (!wait_for_exit_.contains(device) || !backend_) return;
|
||||||
|
|
||||||
wait_for_exit_.removeAll(device);
|
wait_for_exit_.removeAll(device);
|
||||||
|
|||||||
Reference in New Issue
Block a user