CtrlCore: drag and drop in line edit now works as expected. (#351)

This commit is contained in:
Zbigniew Rębacz 2026-01-18 08:18:32 +01:00 committed by GitHub
parent fd1e50934b
commit d9842ebe7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -448,8 +448,6 @@ int Ctrl::DoDragAndDrop(const char *fmts, const Image& sample, dword actions,
ASSERT_(sCurrentMouseEvent__, "Drag can only start within LeftDrag!");
if(!sCurrentMouseEvent__)
return DND_NONE;
if(data.GetCount() == 0)
return DND_NONE; // Cocoa crashes if there is nothing to drop
NSWindow *nswindow = (NSWindow *)GetTopCtrl()->GetNSWindow();
ASSERT_(nswindow, "Ctrl is not in open window");
if(!nswindow)