From cb2f9709c51c232bafc851085434b4e121aedb72 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Mon, 27 Jun 2011 03:11:35 +0000 Subject: [PATCH] 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 --- src/kits/tracker/FSUtils.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index 22a12cb63d..1af1220c2d 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -881,9 +881,12 @@ MoveTask(BObjectList *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;