From 771467f92f14f99aef8c821bd1e92fec4a183b47 Mon Sep 17 00:00:00 2001 From: Kemal Zebari Date: Tue, 12 Dec 2023 20:40:07 -0800 Subject: [PATCH] LibGUI: Fix debug line causing crash when drag event has no mime data Resolves #10618. --- Userland/Libraries/LibGUI/AbstractView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/AbstractView.cpp b/Userland/Libraries/LibGUI/AbstractView.cpp index ab032bc5e1..2b3dd167a7 100644 --- a/Userland/Libraries/LibGUI/AbstractView.cpp +++ b/Userland/Libraries/LibGUI/AbstractView.cpp @@ -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 // rects in this widget to the windowing system somehow. 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)