From kde-commits Mon Mar 29 23:46:44 2004 From: Dirk Mueller Date: Mon, 29 Mar 2004 23:46:44 +0000 To: kde-commits Subject: kdeutils/klaptopdaemon Message-Id: <20040329234644.13F0C99B5 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108060400807690 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);