From 7849f269eb4bbabe807608cec26d1a0ee9d05868 Mon Sep 17 00:00:00 2001 From: kergoth Date: Sun, 23 Mar 2003 23:00:35 +0000 Subject: Use of bat2 bool uninitialized (when on zaurus) resulted in display of "Charging both devices" which confused users. @@ -15,7 +15,7 @@ using namespace Opie; BatteryStatus::BatteryStatus( const PowerStatus *p, QWidget *parent ) - : QWidget( parent, 0, WDestructiveClose), ps(p) { + : QWidget( parent, 0, WDestructiveClose), ps(p), bat2(false) { setCaption( tr("Battery status") ); QPushButton *pb = new QPushButton( tr("Close"), this ); pb->move( 70, 250 ); --- (limited to 'core') diff --git a/core/applets/batteryapplet/batterystatus.cpp b/core/applets/batteryapplet/batterystatus.cpp index 28d6275..7d3bdd9 100644 --- a/core/applets/batteryapplet/batterystatus.cpp +++ b/core/applets/batteryapplet/batterystatus.cpp @@ -15,7 +15,7 @@ using namespace Opie; BatteryStatus::BatteryStatus( const PowerStatus *p, QWidget *parent ) - : QWidget( parent, 0, WDestructiveClose), ps(p) { + : QWidget( parent, 0, WDestructiveClose), ps(p), bat2(false) { setCaption( tr("Battery status") ); QPushButton *pb = new QPushButton( tr("Close"), this ); pb->move( 70, 250 ); -- cgit v0.9.0.2