diff options
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 7be573995..dda1cc64a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1102,7 +1102,7 @@ void Gui::distributeGlobalFocusGainedEvent(const Event &focusEvent) } } -void Gui::removeDragged(Widget *widget) +void Gui::removeDragged(const Widget *const widget) { if (!mFocusHandler) return; @@ -1246,7 +1246,7 @@ Widget* Gui::getKeyEventSource() const void Gui::distributeKeyEvent(KeyEvent &event) const { Widget* parent = event.getSource(); - Widget* widget = event.getSource(); + Widget* widget = parent; if (mFocusHandler->getModalFocused() && !widget->isModalFocused()) return; |