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
This commit is contained in:
committed by
Alexandre Deckner
parent
ef4f1b5533
commit
b9d4b634f6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user