The destination directory wasn't stored in the UndoRedo record in the case of a duplication operation, causing issues when trying to redo an undone duplication (couldn't find the volume correctly).
Fixes #2883. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42328 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -881,9 +881,12 @@ MoveTask(BObjectList<entry_ref> *srcList, BEntry *destEntry, BList *pointList,
|
|||||||
volume.SetTo(destVolumeDevice);
|
volume.SetTo(destVolumeDevice);
|
||||||
|
|
||||||
needPreflightNameCheck = true;
|
needPreflightNameCheck = true;
|
||||||
} else if (moveMode == kDuplicateSelection)
|
} else if (moveMode == kDuplicateSelection) {
|
||||||
|
BEntry entry;
|
||||||
|
entry.SetTo(srcList->FirstItem());
|
||||||
|
entry.GetParent(&destDir);
|
||||||
volume.SetTo(srcVolumeDevice);
|
volume.SetTo(srcVolumeDevice);
|
||||||
else {
|
} else {
|
||||||
// move is to trash
|
// move is to trash
|
||||||
destIsTrash = true;
|
destIsTrash = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user