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);