PoseView::MoveSelectionInto() needs to check for the case that the source
window actually has a selection list to use. Certain actions can render it possible to empty out the selection in mid drag-and-drop, which MoveSelectionInto wasn't taking into account, leading to a crash. Fixes ticket #5860. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36543 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
612721376c
commit
f7cf319589
@ -4631,6 +4631,9 @@ BPoseView::MoveSelectionInto(Model *destFolder, BContainerWindow *srcWindow,
|
||||
return;
|
||||
|
||||
ASSERT(srcWindow->PoseView()->TargetModel());
|
||||
|
||||
if (srcWindow->PoseView()->SelectionList()->CountItems() == 0)
|
||||
return;
|
||||
|
||||
bool createRelativeLink = relativeLink;
|
||||
if (((buttons & B_SECONDARY_MOUSE_BUTTON)
|
||||
|
Loading…
Reference in New Issue
Block a user