[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeutils/klaptopdaemon
From: Dirk Mueller <mueller () kde ! org>
Date: 2004-03-29 23:46:44
Message-ID: 20040329234644.13F0C99B5 () office ! kde ! org
[Download RAW message or body]
CVS commit by mueller:
do not load kdeglobals
M +3 -3 portable.cpp 1.85
--- kdeutils/klaptopdaemon/portable.cpp #1.84:1.85
@@ -356,5 +356,5 @@ static void acpi_read_batteries() {
}
if (bat.cap <= 0) {
- KConfig* config = new KConfig("kcmlaptoprc");
+ KConfig* config = new KConfig("kcmlaptoprc", true /*readonly*/, false /*useKDEGlobals*/);
config->setGroup("AcpiBattery");
bat.cap = config->readNumEntry(bat.name,0);
@@ -395,5 +395,5 @@ static void acpi_read_batteries() {
if (bat.remaining > bat.cap) { // happens e.g. if the system doesn't provide a capacity value
bat.cap = bat.remaining;
- KConfig* config = new KConfig("kcmlaptoprc");
+ KConfig* config = new KConfig("kcmlaptoprc", false /*readonly*/, false /*useKDEGlobals*/);
config->setGroup("AcpiBattery");
config->writeEntry(bat.name, bat.cap);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic