This commit is contained in:
Albert Vaca 2017-02-05 15:54:38 +01:00
parent bf97d8f606
commit 1d09ee78a5

View file

@ -78,7 +78,7 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
}); });
setWhenAvailable(device->hasPlugin("kdeconnect_sftp"), [browse](bool available) { browse->setEnabled(available); }, this); setWhenAvailable(device->hasPlugin("kdeconnect_sftp"), [browse](bool available) { browse->setEnabled(available); }, this);
auto findDevice = addAction(i18n("Find device")); auto findDevice = addAction(i18n("Ring device"));
connect(findDevice, &QAction::triggered, device, [device](){ connect(findDevice, &QAction::triggered, device, [device](){
FindMyPhoneDeviceDbusInterface* iface = new FindMyPhoneDeviceDbusInterface(device->id(), device); FindMyPhoneDeviceDbusInterface* iface = new FindMyPhoneDeviceDbusInterface(device->id(), device);
iface->ring(); iface->ring();