diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp index bb2d947ca..8d41292bb 100644 --- a/interfaces/devicesmodel.cpp +++ b/interfaces/devicesmodel.cpp @@ -136,6 +136,7 @@ void DevicesModel::refreshDeviceList() void DevicesModel::receivedDeviceList(QDBusPendingCallWatcher* watcher) { + watcher->deleteLater(); clearDevices(); QDBusPendingReply pendingDeviceIds = *watcher; if (pendingDeviceIds.isError()) { @@ -150,7 +151,6 @@ void DevicesModel::receivedDeviceList(QDBusPendingCallWatcher* watcher) m_deviceList.append(new DeviceDbusInterface(id, this)); } endInsertRows(); - watcher->deleteLater(); } void DevicesModel::clearDevices()