Correctly indicate "Copying" vs "Moving" state in status window (thanks Adrian Panasiuk for pointing this out).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28762 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -591,7 +591,8 @@ InitCopy(uint32 moveMode, BObjectList<entry_ref> *srcList, thread_id thread,
|
|||||||
case kMoveSelectionTo:
|
case kMoveSelectionTo:
|
||||||
{
|
{
|
||||||
if (gStatusWindow)
|
if (gStatusWindow)
|
||||||
gStatusWindow->CreateStatusItem(thread, kCopyState);
|
gStatusWindow->CreateStatusItem(thread,
|
||||||
|
moveMode == kMoveSelectionTo ? kMoveState : kCopyState);
|
||||||
|
|
||||||
int32 totalItems = 0;
|
int32 totalItems = 0;
|
||||||
off_t totalSize = 0;
|
off_t totalSize = 0;
|
||||||
@@ -616,9 +617,7 @@ InitCopy(uint32 moveMode, BObjectList<entry_ref> *srcList, thread_id thread,
|
|||||||
// this will be fast, only put up status if lots of items
|
// this will be fast, only put up status if lots of items
|
||||||
// moved, links created
|
// moved, links created
|
||||||
if (gStatusWindow) {
|
if (gStatusWindow) {
|
||||||
gStatusWindow->CreateStatusItem(thread,
|
gStatusWindow->CreateStatusItem(thread, kCreateLinkState);
|
||||||
moveMode == kMoveSelectionTo
|
|
||||||
? kMoveState : kCreateLinkState);
|
|
||||||
gStatusWindow->InitStatusItem(thread, numItems, numItems,
|
gStatusWindow->InitStatusItem(thread, numItems, numItems,
|
||||||
destRef);
|
destRef);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user