Avoid detach

This commit is contained in:
Nicolas Fella 2019-02-28 14:24:25 +01:00
parent 491e38aa91
commit 9190c79203
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,8 @@ void FindMyPhoneRunner::match(Plasma::RunnerContext &context)
if (devicesReply.isValid()) { if (devicesReply.isValid()) {
for (const QString& deviceId : devicesReply.value()) { const auto devices = devicesReply.value();
for (const QString& deviceId : devices) {
DeviceDbusInterface deviceInterface(deviceId, this); DeviceDbusInterface deviceInterface(deviceId, this);

View file

@ -46,7 +46,8 @@ void RemoteCommandsRunner::match(Plasma::RunnerContext &context)
if (devicesReply.isValid()) { if (devicesReply.isValid()) {
for (const QString& deviceId : devicesReply.value()) { const auto devices = devicesReply.value();
for (const QString& deviceId : devices) {
DeviceDbusInterface deviceInterface(deviceId, this); DeviceDbusInterface deviceInterface(deviceId, this);