Avoid detach
This commit is contained in:
parent
491e38aa91
commit
9190c79203
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue