summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/battery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp
index 15eb762..4adcab4 100644
--- a/core/applets/batteryapplet/battery.cpp
+++ b/core/applets/batteryapplet/battery.cpp
@@ -91,5 +91,5 @@ void BatteryMeter::timerEvent( QTimerEvent * )
if ( prev != *ps ) {
percent = ps->batteryPercentRemaining();
- if ( !charging && ps->batteryStatus() == PowerStatus::Charging && percent < 0 ) {
+ if ( !charging && ps->batteryStatus() == PowerStatus::Charging ) {
percent = 0;
charging = true;
@@ -120,5 +120,5 @@ void BatteryMeter::chargeTimeout()
void BatteryMeter::paintEvent( QPaintEvent* )
{
- qWarning("paint");
+
if ( style == 1 )
{