From a1bd0179b28fa93c771bc5602f64746878f0ffad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jul 2013 20:00:46 +0300 Subject: fix some leaks on exit. --- src/gui/widgets/dropdown.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/dropdown.cpp') diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 4ebbcc001..e8d4006a2 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -355,9 +355,10 @@ void DropDown::keyPressed(gcn::KeyEvent& keyEvent) keyEvent.consume(); } -void DropDown::hideDrop() +void DropDown::hideDrop(bool event) { - distributeActionEvent(); + if (event) + distributeActionEvent(); mPopup->setVisible(false); } -- cgit v1.2.3-60-g2f50