Fix for qt 5.6

This commit is contained in:
Albert Vaca 2016-11-23 20:27:09 +01:00
parent 89d6152b3b
commit 3a558984b9

View file

@ -38,7 +38,7 @@ class BatteryAction : public QAction
Q_OBJECT Q_OBJECT
public: public:
BatteryAction(DeviceDbusInterface* device) BatteryAction(DeviceDbusInterface* device)
: QAction() : QAction(nullptr)
, m_batteryIface(new DeviceBatteryDbusInterface(device->id(), this)) , m_batteryIface(new DeviceBatteryDbusInterface(device->id(), this))
{ {
setWhenAvailable(m_batteryIface->charge(), [this](int charge) { setCharge(charge); }, this); setWhenAvailable(m_batteryIface->charge(), [this](int charge) { setCharge(charge); }, this);