diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-22 01:59:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-22 02:25:16 +0300 |
commit | ce140e2fb1a70e185a17ec908add18c4244a7faa (patch) | |
tree | fdb8b84540996218da9c83dc3177950d49132b90 | |
parent | 24fcf548c2d570d1b23bf799159b64f170f738bd (diff) | |
download | mv-ce140e2fb1a70e185a17ec908add18c4244a7faa.tar.gz mv-ce140e2fb1a70e185a17ec908add18c4244a7faa.tar.bz2 mv-ce140e2fb1a70e185a17ec908add18c4244a7faa.tar.xz mv-ce140e2fb1a70e185a17ec908add18c4244a7faa.zip |
Fix crash with next control button (TAB).
-rw-r--r-- | src/gui/widgets/popuplist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp index 211de45e5..260dcb6a9 100644 --- a/src/gui/widgets/popuplist.cpp +++ b/src/gui/widgets/popuplist.cpp @@ -45,8 +45,8 @@ PopupList::PopupList(DropDown *const widget, mScrollArea->setPosition(mPadding, mPadding); add(mScrollArea); - if (getParent()) - getParent()->addFocusListener(this); +// if (getParent()) +// getParent()->addFocusListener(this); if (gui) gui->addGlobalFocusListener(this); @@ -57,6 +57,8 @@ PopupList::PopupList(DropDown *const widget, PopupList::~PopupList() { + if (getParent()) + getParent()->removeFocusListener(this); if (gui) gui->removeGlobalFocusListener(this); removeKeyListener(mDropDown); |