summaryrefslogtreecommitdiff
path: root/noncore/applets/brightnessapplet/brightnessapplet.cpp
authormickeyl <mickeyl>2004-11-10 19:41:11 (UTC)
committer mickeyl <mickeyl>2004-11-10 19:41:11 (UTC)
commitd2f3b6f525be4d652fbac7c87ab0ad40e21af184 (patch) (unidiff)
tree1be63fb1e8d3cc16daa2d52f2df37125b7be5c9b /noncore/applets/brightnessapplet/brightnessapplet.cpp
parent9088b52d1ef7c4e70e62a53e225c69508cc8afe3 (diff)
downloadopie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.zip
opie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.tar.gz
opie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.tar.bz2
BUGFIX: write to the proper config file *cough*
Diffstat (limited to 'noncore/applets/brightnessapplet/brightnessapplet.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/brightnessapplet/brightnessapplet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/applets/brightnessapplet/brightnessapplet.cpp b/noncore/applets/brightnessapplet/brightnessapplet.cpp
index 5aaa27e..90fde05 100644
--- a/noncore/applets/brightnessapplet/brightnessapplet.cpp
+++ b/noncore/applets/brightnessapplet/brightnessapplet.cpp
@@ -160,7 +160,7 @@ void BrightnessApplet::writeSystemBrightness(int brightness)
160{ 160{
161 PowerStatus ps = PowerStatusManager::readStatus(); 161 PowerStatus ps = PowerStatusManager::readStatus();
162 162
163 Config cfg("qpe"); 163 Config cfg( "apm" );
164 if (ps.acStatus() == PowerStatus::Online) { 164 if (ps.acStatus() == PowerStatus::Online) {
165 cfg.setGroup("AC"); 165 cfg.setGroup("AC");
166 } else { 166 } else {
@@ -175,7 +175,7 @@ void BrightnessApplet::writeSystemBrightness(int brightness)
175int BrightnessApplet::readSystemBrightness(void) 175int BrightnessApplet::readSystemBrightness(void)
176{ 176{
177 PowerStatus ps = PowerStatusManager::readStatus(); 177 PowerStatus ps = PowerStatusManager::readStatus();
178 Config cfg("qpe"); 178 Config cfg( "apm" );
179 179
180 if (ps.acStatus() == PowerStatus::Online) { 180 if (ps.acStatus() == PowerStatus::Online) {
181 cfg.setGroup("AC"); 181 cfg.setGroup("AC");