Calling BStatusBar::Update() with NULL as either string argument should
keep the current string. (Untested) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26379 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -361,6 +361,11 @@ BStatusBar::SetMaxValue(float max)
|
||||
void
|
||||
BStatusBar::Update(float delta, const char* text, const char* trailingText)
|
||||
{
|
||||
// If any of these are NULL, the existing text remains (BeBook)
|
||||
if (text == NULL)
|
||||
text = fText.String();
|
||||
if (trailingText == NULL)
|
||||
trailingText = fTrailingText.String();
|
||||
BStatusBar::SetTo(fCurrent + delta, text, trailingText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user