Don't show the total number of items if 0 (as will happen in the case of move operations since we skip the pre-flight count for those). Fixes ticket #3722.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30140 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-04-12 22:33:21 +00:00
parent 3e62a75547
commit 979786f1e6
1 changed files with 3 additions and 2 deletions

View File

@ -528,8 +528,9 @@ BStatusView::InitStatus(int32 totalItems, off_t totalSize,
} }
BString buffer; BString buffer;
buffer << "of " << totalItems; if (totalItems > 0)
buffer << "of " << totalItems;
switch (fType) { switch (fType) {
case kCopyState: case kCopyState:
fStatusBar->Reset("Copying: ", buffer.String()); fStatusBar->Reset("Copying: ", buffer.String());