TVTDragManager.GetDataObject() should not use TVTDataObject in case the OnCreateDataObject event handler returned nil #736
Labels
Breaking Change
Open for Discussion
There are several possibilites to address the issue and anyone is invited for comments.
Milestone
TVTDragManager.GetDataObject()
should not fall back toTVTDataObject
in case theOnCreateDataObject
event handler actively decided to returnnil
, it should do that only in case noOnCreateDataObject
event handler is assigned. In some situations the creation of anIDataObject
simply fails with an error, and there is nothing to drag (maybe because the object is already deleted).It is currently very inconvenient to interrupt the started drag operation once you recognized that you cannot provide an
IDataObject
.The text was updated successfully, but these errors were encountered: