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:
parent
3e62a75547
commit
979786f1e6
|
@ -528,8 +528,9 @@ BStatusView::InitStatus(int32 totalItems, off_t totalSize,
|
|||
}
|
||||
|
||||
BString buffer;
|
||||
buffer << "of " << totalItems;
|
||||
|
||||
if (totalItems > 0)
|
||||
buffer << "of " << totalItems;
|
||||
|
||||
switch (fType) {
|
||||
case kCopyState:
|
||||
fStatusBar->Reset("Copying: ", buffer.String());
|
||||
|
|
Loading…
Reference in New Issue