1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 11:45:11 +00:00

LibGUI: Fix debug line causing crash when drag event has no mime data

Resolves #10618.
This commit is contained in:
Kemal Zebari 2023-12-12 20:40:07 -08:00 committed by Tim Flynn
parent 04b591b2e0
commit 771467f92f

View file

@ -791,7 +791,7 @@ void AbstractView::drag_enter_event(DragEvent& event)
// We might be able to reduce event traffic by communicating the set of drag-accepting // We might be able to reduce event traffic by communicating the set of drag-accepting
// rects in this widget to the windowing system somehow. // rects in this widget to the windowing system somehow.
event.accept(); event.accept();
dbgln_if(DRAG_DEBUG, "accepting drag of {}", event.mime_types().first()); dbgln_if(DRAG_DEBUG, "accepting drag of {}", event.mime_types());
} }
void AbstractView::drag_move_event(DragEvent& event) void AbstractView::drag_move_event(DragEvent& event)