Merge pull request #2631 from ugurilter/master

fix arbitrary content being dragged and dropped causing errors
This commit is contained in:
Anton Vorobyov
2024-11-26 19:59:08 +01:00
committed by GitHub
8 changed files with 32 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ class DroneViewDrop(wx.DropTarget):
def OnData(self, x, y, t):
if self.GetData():
dragged_data = DragDropHelper.data
if dragged_data is None:
return t
data = dragged_data.split(':')
self.dropFn(x, y, data)
return t