Browse Source

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

Resolves #10618.
Kemal Zebari 1 year ago
parent
commit
771467f92f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGUI/AbstractView.cpp

+ 1 - 1
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)