-rw-r--r-- | core/applets/batteryapplet/battery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp index eee3ed3..078ce8d 100644 --- a/core/applets/batteryapplet/battery.cpp +++ b/core/applets/batteryapplet/battery.cpp | |||
@@ -62,7 +62,7 @@ void BatteryMeter::mousePressEvent( QMouseEvent* e ) | |||
62 | Config c( "qpe" ); | 62 | Config c( "qpe" ); |
63 | c.setGroup( "Battery" ); | 63 | c.setGroup( "Battery" ); |
64 | c.writeEntry( "Style", style ); | 64 | c.writeEntry( "Style", style ); |
65 | repaint(); | 65 | repaint( true ); |
66 | } | 66 | } |
67 | QWidget::mousePressEvent( e ); | 67 | QWidget::mousePressEvent( e ); |
68 | } | 68 | } |
@@ -97,7 +97,7 @@ void BatteryMeter::timerEvent( QTimerEvent * ) | |||
97 | if ( batteryView ) | 97 | if ( batteryView ) |
98 | batteryView->updatePercent( percent ); | 98 | batteryView->updatePercent( percent ); |
99 | } | 99 | } |
100 | repaint(FALSE); | 100 | repaint( style != 0 ); |
101 | if ( batteryView ) | 101 | if ( batteryView ) |
102 | batteryView->repaint(); | 102 | batteryView->repaint(); |
103 | } | 103 | } |