Blob Blame History Raw
diff -ur kdebase-workspace-4.3.98/plasma/generic/applets/battery/battery.cpp kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp
--- kdebase-workspace-4.3.98/plasma/generic/applets/battery/battery.cpp	2010-01-31 20:30:45.000000000 +0100
+++ kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp	2010-02-01 05:42:29.000000000 +0100
@@ -613,7 +613,11 @@
         } else {
             m_acInfoLabel->setText(i18n("Not plugged in"));
         }
-        if ((state == "Discharging" || state == "Charging") && m_remainingMSecs > 0 && m_showRemainingTime) {
+        // Always show the remaining time in the popup.
+        // We don't just set m_showRemainingTime to true by default because
+        // that'd try to use the time also for the icon. That won't fit on
+        // small panels.
+        if ((state == "Discharging" || state == "Charging") && m_remainingMSecs > 0) {
             m_remainingTimeLabel->show();
             m_remainingInfoLabel->show();
             // we don't have too much accuracy so only give hours and minutes