author | mickeyl <mickeyl> | 2006-06-01 11:26:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2006-06-01 11:26:26 (UTC) |
commit | dd618abb56ba6dec2f4c76548d264d2a68660e0d (patch) (unidiff) | |
tree | 528babbeff43924711d266c5cab078cfc88d3b37 /core/applets/batteryapplet/batterystatus.cpp | |
parent | 4ec617a0fa1c44f5527ae7eff176cf8451d9973c (diff) | |
download | opie-dd618abb56ba6dec2f4c76548d264d2a68660e0d.zip opie-dd618abb56ba6dec2f4c76548d264d2a68660e0d.tar.gz opie-dd618abb56ba6dec2f4c76548d264d2a68660e0d.tar.bz2 |
improve support for ipaqs
Diffstat (limited to 'core/applets/batteryapplet/batterystatus.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/batteryapplet/batterystatus.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/applets/batteryapplet/batterystatus.cpp b/core/applets/batteryapplet/batterystatus.cpp index 08ddc85..9622726 100644 --- a/core/applets/batteryapplet/batterystatus.cpp +++ b/core/applets/batteryapplet/batterystatus.cpp | |||
@@ -79,17 +79,15 @@ bool BatteryStatus::getProcApmStatusIpaq() { | |||
79 | jackChem = (*line).mid((*line).find('('), (*line).find(')')-(*line).find('(')+1); | 79 | jackChem = (*line).mid((*line).find('('), (*line).find(')')-(*line).find('(')+1); |
80 | } else { | 80 | } else { |
81 | ipaqChem = (*line).mid((*line).find('('), (*line).find(')')-(*line).find('(')+1); | 81 | ipaqChem = (*line).mid((*line).find('('), (*line).find(')')-(*line).find('(')+1); |
82 | } | 82 | } |
83 | } | 83 | } |
84 | } | 84 | } |
85 | } else { | 85 | procApmIpaq.close(); |
86 | QMessageBox::warning(this, tr("Failure"),tr("could not open file")); | ||
87 | } | 86 | } |
88 | 87 | ||
89 | procApmIpaq.close(); | ||
90 | jackPercent = perc2.toInt(); | 88 | jackPercent = perc2.toInt(); |
91 | ipaqPercent = perc1.toInt(); | 89 | ipaqPercent = perc1.toInt(); |
92 | 90 | ||
93 | if (perc2.isEmpty() || perc2 == "unknow" ) { | 91 | if (perc2.isEmpty() || perc2 == "unknow" ) { |
94 | perc2 = tr("no data"); | 92 | perc2 = tr("no data"); |
95 | } else { | 93 | } else { |