Hi,
I have the following bug:
kpowersave crashes when I open the configure dialog box.
I'm using kpowersave 0.7.2.
I looked at the code and I have the following clue.
In file configuredialog.cpp:75
// check if brightness is supported
if((brightnessLevels = (hwinfo->getMaxBrightnessLevel()-1)) >= 0) {
brightness_supported = true;
brightness_last = hwinfo->getCurrentBrightnessLevel();
}
In my case hwinfo->getMaxBrightnessLevel() returns 1 and then
brightness_supported is set to true and brightnessLevels to 0.
Then, at line 497 of the same file:
brightnessSlider->setLineStep(100/brightnessLevels);
brightnessLevels' value is still 0 and it crashes (division by 0).
I don't really know how to fix it to get the correct behaviour but I think
you should know.
Xavier
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel