diff --git a/src/device/devicemanager.cpp b/src/device/devicemanager.cpp index 0a0535185..592c520eb 100644 --- a/src/device/devicemanager.cpp +++ b/src/device/devicemanager.cpp @@ -638,7 +638,7 @@ SharedPtr DeviceManager::Connect(DeviceInfo *info) { Q_ARG(QUrl, device_url), Q_ARG(DeviceLister*, info->BestBackend()->lister_), Q_ARG(QString, info->BestBackend()->unique_id_), - Q_ARG(DeviceManager*, this), + Q_ARG(SharedPtr, app_->device_manager()), Q_ARG(Application*, app_), Q_ARG(int, info->database_id_), Q_ARG(bool, first_time));