Fix warning

This commit is contained in:
Albert Vaca 2017-09-18 20:04:46 +02:00
parent 2e27310d7b
commit efaa7cbab1

View file

@ -74,7 +74,7 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
auto battery = new BatteryAction(device);
addAction(battery);
setWhenAvailable(device->hasPlugin("kdeconnect_battery"),
[this, battery](bool available) { battery->setVisible(available); }
[battery](bool available) { battery->setVisible(available); }
, this);
auto browse = addAction(i18n("Browse device"));