diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-04 19:08:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-04 19:08:17 +0300 |
commit | 67bfe1259c7a819ef245289ecda935282e31e2f2 (patch) | |
tree | 121a011020ac732f606d2242ec45f374414719f6 /src/gui/widgets/guitable.cpp | |
parent | 7e8850e6879bbe95165ff4c163bf6c3d725d251a (diff) | |
download | manaverse-67bfe1259c7a819ef245289ecda935282e31e2f2.tar.gz manaverse-67bfe1259c7a819ef245289ecda935282e31e2f2.tar.bz2 manaverse-67bfe1259c7a819ef245289ecda935282e31e2f2.tar.xz manaverse-67bfe1259c7a819ef245289ecda935282e31e2f2.zip |
Fix crash with empty relations list.
Fix http://bugs.evolonline.org/view.php?id=43
Diffstat (limited to 'src/gui/widgets/guitable.cpp')
-rw-r--r-- | src/gui/widgets/guitable.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 4e966599e..39f08340d 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -599,3 +599,10 @@ void GuiTable::_setFocusHandler(gcn::FocusHandler* focusHandler) } } } + +void GuiTable::requestFocus() +{ + if (!mFocusHandler) + return; + gcn::Widget::requestFocus(); +} |