Bug 178116

Summary: battery monitor shrinks batteries' xscale every time a battery is added
Product: [Plasma] plasma4 Reporter: matthias sweertvaegher <matthias.sweertvaegher>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot showing thin batteries after a few switches

Description matthias sweertvaegher 2008-12-19 00:08:45 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    SuSE RPMs

this bug is perfectly reproducable.

First, I added the battery monitor widget to my desktop. I have a laptop with 2 batteries, so it shows me 2 batteries like expected. Next, I unplug one battery. The battery monitor shows me only 1 battery at appropriate size. When I plug the battery back in, it again will show the batteries at appropriate size. So what's the problem?

Here is the trick:
- click the wrench to open battery monitor settings
- enable "show the percentage of charge on the battery"

suddenly the batteries start losing weight (=become thinner) when you unplug and plug them back in!
Even when disabling "show the percentage of charge on the battery", the effect remains.
Comment 1 matthias sweertvaegher 2008-12-19 00:16:58 UTC
Created attachment 29424 [details]
screenshot showing thin batteries after a few switches
Comment 2 Sebastian Kügler 2009-02-03 01:50:35 UTC
SVN commit 920485 by sebas:

Don't reconnect after config changes

There's no reason to do that because dataEngine connections are not
influenced by any config option.

BUG:178116
CCMAIL:matthias sweertvaegher <matthias.sweertvaegher@gmail.com>

 M  +0 -19     battery.cpp  
 M  +0 -1      battery.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=920485