Use static_cast instead for destroyed object
This commit is contained in:
parent
97208cb329
commit
6e69e39007
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue