diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 20:00:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 20:00:46 +0300 |
commit | a1bd0179b28fa93c771bc5602f64746878f0ffad (patch) | |
tree | ff696a9b98c32441b06ffabf2a8ca7312590c8e3 /src/gui/widgets/dropdown.cpp | |
parent | 41953ac4902ca11bb07b0aab53e811ca68ce4f64 (diff) | |
download | manaplus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.gz manaplus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.bz2 manaplus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.xz manaplus-a1bd0179b28fa93c771bc5602f64746878f0ffad.zip |
fix some leaks on exit.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |