Use static_cast instead for destroyed object

This commit is contained in:
Jonas Kvinge 2020-08-15 15:16:06 +02:00
parent 97208cb329
commit 6e69e39007
1 changed files with 1 additions and 1 deletions

View File

@ -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);