Don't attempt to move the selection to the target window if the latter does not contain a poseview (as is the case for an info window). Resolves #7179.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40338 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
886d6531a6
commit
b2d0aaa9e6
@ -4526,7 +4526,8 @@ BPoseView::HandleDropCommon(BMessage *message, Model *targetModel, BPose *target
|
||||
poseView->ResetPosePlacementHint();
|
||||
}
|
||||
|
||||
if (srcWindow == containerWindow && DragSelectionContains(targetPose, message)) {
|
||||
if (srcWindow == containerWindow && DragSelectionContains(targetPose,
|
||||
message)) {
|
||||
// drop on self
|
||||
targetModel = NULL;
|
||||
}
|
||||
@ -4534,7 +4535,7 @@ BPoseView::HandleDropCommon(BMessage *message, Model *targetModel, BPose *target
|
||||
bool wasHandled = false;
|
||||
bool ignoreTypes = (modifiers() & B_CONTROL_KEY) != 0;
|
||||
|
||||
if (targetModel) {
|
||||
if (targetModel && containerWindow != NULL) {
|
||||
// TODO: pick files to drop/launch on a case by case basis
|
||||
if (targetModel->IsDirectory()) {
|
||||
MoveSelectionInto(targetModel, srcWindow, containerWindow, buttons, dropPt,
|
||||
|
Loading…
x
Reference in New Issue
Block a user