[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/klaptopdaemon
From:       Volker Krause <volker.krause () rwth-aachen ! de>
Date:       2004-04-10 13:55:59
Message-ID: 20040410135559.A1C5299F4 () office ! kde ! org
[Download RAW message or body]

CVS commit by vkrause: 

Show an usefull message if klaptopdaemon thinks it is running without any power source.
This should fix the remaining "-1% charged" message.

CCMAIL: 42745-done@bugs.kde.org


  M +14 -8     daemondock.cpp   1.59


--- kdeutils/klaptopdaemon/daemondock.cpp  #1.58:1.59
@@ -656,4 +656,5 @@ quit:
                 }
         } else {
+                if (pdaemon->val >= 0) {
                 if (pdaemon->left >= 0) {
                         QString num3;
@@ -665,4 +666,9 @@ quit:
                         tmp = i18n("Running on batteries  - %1% charged").arg(pdaemon->val);
                 }
+                } else {
+                        // running without any power source...
+                        // happens eg. due to ACPI not being able to handle battery hot-plugin
+                        tmp = i18n("No power source found");
+                }
         }
         QToolTip::add(this, tmp);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic