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:
Philippe Saint-Pierre
2011-06-27 03:11:35 +00:00
parent 15f3037b87
commit cb2f9709c5
+5 -2
View File
@@ -881,9 +881,12 @@ MoveTask(BObjectList<entry_ref> *srcList, BEntry *destEntry, BList *pointList,
volume.SetTo(destVolumeDevice);
needPreflightNameCheck = true;
} else if (moveMode == kDuplicateSelection)
} else if (moveMode == kDuplicateSelection) {
BEntry entry;
entry.SetTo(srcList->FirstItem());
entry.GetParent(&destDir);
volume.SetTo(srcVolumeDevice);
else {
} else {
// move is to trash
destIsTrash = true;