If the source and destination volumes of a drag and drop op do not match, default to copying unless the user has explicitly requested otherwise. TODO: visual indicator of which op is going to happen.

--

M    PoseView.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29084 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-01-29 00:05:38 +00:00
parent 28ff07ab3c
commit cfd0c07711

View File

@ -4449,9 +4449,17 @@ BPoseView::MoveSelectionInto(Model *destFolder, BContainerWindow *srcWindow,
moveMode = kCreateRelativeLink;
else if (createLink)
moveMode = kCreateLink;
else
else {
moveMode = kMoveSelectionTo;
entry_ref *srcRef = srcList->ItemAt(0);
BDirectory destDir (destEntry);
struct stat deststat;
destDir.GetStat(&deststat);
if (srcRef->device != deststat.st_dev)
moveMode = kCopySelectionTo;
}
FSMoveToFolder(srcList, destEntry, moveMode);
return;
}
@ -4595,8 +4603,16 @@ BPoseView::MoveSelectionTo(BPoint dropPt, BPoint clickPt,
moveMode = kCreateRelativeLink;
else if (createLink)
moveMode = kCreateLink;
else
else {
moveMode = kMoveSelectionTo;
entry_ref *srcRef = srcList->ItemAt(0);
BDirectory destDir (destEntry);
struct stat deststat;
destDir.GetStat(&deststat);
if (srcRef->device != deststat.st_dev)
moveMode = kCopySelectionTo;
}
FSMoveToFolder(srcList, destEntry, moveMode, pointList);
} else {
if (pointList) {