* charging/discharging text was mixed up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34021 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-13 15:04:26 +00:00
parent a0750e6550
commit c479106612
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ PowerStatusView::Update(bool force)
"%ld:%02ld\n", fTimeLeft / 3600, (fTimeLeft / 60) % 60);
}
length += snprintf(text + length, sizeof(text) - length, "%s",
fOnline ? "charging" : "discharging");
!fOnline ? "charging" : "discharging");
} else
strcpy(text, "no battery");
SetToolTip(text);