From 520a495c466793c29f3e721634dfe6cc616b8ede Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 May 2014 23:56:03 +0300 Subject: Add missing const. --- src/gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/gui.cpp') 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; -- cgit v1.2.3-60-g2f50