From b9d4b634f6406790a909a0a1c4a3770e3d8620fb Mon Sep 17 00:00:00 2001 From: stippi Date: Mon, 3 May 2010 11:45:22 +0000 Subject: [PATCH] Use BStatusBar properly. The text in a BStatusBar is composed of four parts. Label and trailing label are only specified in the constructor or in Reset(). By using SetText(), we were modifying another part of the text, while we meant to set the label. This fixes updates on node monitor messages. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@472 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/DownloadProgressView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/webpositive/DownloadProgressView.cpp b/src/apps/webpositive/DownloadProgressView.cpp index 54ca1797e6..e7914e8736 100644 --- a/src/apps/webpositive/DownloadProgressView.cpp +++ b/src/apps/webpositive/DownloadProgressView.cpp @@ -501,7 +501,9 @@ DownloadProgressView::MessageReceived(BMessage* message) } } - fStatusBar->SetText(name); + float value = fStatusBar->CurrentValue(); + fStatusBar->Reset(name); + fStatusBar->SetTo(value); Window()->PostMessage(SAVE_SETTINGS); break; }