effects/private: Add another guard for multi-screen Drag&Drop
Unlike D&D actions, this method does not return any feedback as to whether an item drop was accepted by any other screen, and so whether it is going through destruction process already, so the best we can do is add another typeof/undefined check after calling that method. Fixes the following error: file:///usr/lib/qml/org/kde/kwin/private/effects/WindowHeapDelegate.qml:415: TypeError: Cannot read property 'deleteDND' of undefined
This commit is contained in:
parent
d8faf8ab08
commit
ab79fe47ce
1 changed files with 5 additions and 3 deletions
|
@ -411,9 +411,11 @@ Item {
|
|||
var globalPos = targetScreen.mapToGlobal(centroid.scenePosition);
|
||||
effect.checkItemDroppedOutOfScreen(globalPos, thumbSource);
|
||||
|
||||
// else, return to normal without reparenting
|
||||
thumbSource.deleteDND();
|
||||
thumb.substate = "normal";
|
||||
if (typeof thumbSource !== "undefined") {
|
||||
// else, return to normal without reparenting
|
||||
thumbSource.deleteDND();
|
||||
thumb.substate = "normal";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue