Ver código fonte

LibGUI: GWidget::drop_event() should ignore the event by default

This will cause the event to bubble up the widget tree.
Andreas Kling 5 anos atrás
pai
commit
af7cb7ce1b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Libraries/LibGUI/GWidget.cpp

+ 1 - 0
Libraries/LibGUI/GWidget.cpp

@@ -355,6 +355,7 @@ void GWidget::change_event(GEvent&)
 void GWidget::drop_event(GDropEvent& event)
 {
     dbg() << class_name() << "{" << this << "} DROP  position: " << event.position() << ", text: '" << event.text() << "'";
+    event.ignore();
 }
 
 void GWidget::update()