From 1bc4fcfa233d248fb74226d93b80035ba3e4d6e0 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Mon, 18 Nov 2013 02:32:42 +0100 Subject: [PATCH] Ooops incorrect comparison --- kded/plugins/battery/batteryplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kded/plugins/battery/batteryplugin.cpp b/kded/plugins/battery/batteryplugin.cpp index 074acdf8e..4ab995174 100644 --- a/kded/plugins/battery/batteryplugin.cpp +++ b/kded/plugins/battery/batteryplugin.cpp @@ -62,7 +62,7 @@ bool BatteryPlugin::receivePackage(const NetworkPackage& np) int currentCharge = np.get("currentCharge"); int thresholdEvent = np.get("thresholdEvent", (int)ThresholdNone); - if (batteryDbusInterface->isCharging() != currentCharge + if (batteryDbusInterface->charge() != currentCharge || batteryDbusInterface->isCharging() != isCharging ) { batteryDbusInterface->updateValues(isCharging, currentCharge);