summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-19 20:07:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-20 20:07:10 +0100
commitaf7cb7ce1b057670f67fba988383f4cedfd9a470 (patch)
treea92777354282da9483ff5ce326c6bae22bbbda46
parent0a104628967fb63c8505ad51437eef9bf46bb708 (diff)
downloadserenity-af7cb7ce1b057670f67fba988383f4cedfd9a470.zip
LibGUI: GWidget::drop_event() should ignore the event by default
This will cause the event to bubble up the widget tree.
-rw-r--r--Libraries/LibGUI/GWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GWidget.cpp b/Libraries/LibGUI/GWidget.cpp
index dbd7b0cd83..67ac897a2a 100644
--- a/Libraries/LibGUI/GWidget.cpp
+++ b/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()