diff options
author | Dennis Friis <peavey@placid.dk> | 2008-06-09 15:03:14 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-06-09 15:03:14 +0000 |
commit | eb019ab915998a3ec247b33dad4b23f763d7a29a (patch) | |
tree | 54c4844a719942376327dac8678476524c54db6c /src/gui/table.cpp | |
parent | 0dd4c03506132c5f4a7104152d8675d6990ba81b (diff) | |
download | mana-eb019ab915998a3ec247b33dad4b23f763d7a29a.tar.gz mana-eb019ab915998a3ec247b33dad4b23f763d7a29a.tar.bz2 mana-eb019ab915998a3ec247b33dad4b23f763d7a29a.tar.xz mana-eb019ab915998a3ec247b33dad4b23f763d7a29a.zip |
Fix for segfault in drop down list of player ignore and sanity check for /whisper ignore. Patch by fate.
Diffstat (limited to 'src/gui/table.cpp')
-rw-r--r-- | src/gui/table.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/table.cpp b/src/gui/table.cpp index 07f40f76..89a93825 100644 --- a/src/gui/table.cpp +++ b/src/gui/table.cpp @@ -109,6 +109,7 @@ GuiTable::setModel(TableModel *new_model) recomputeDimensions(); } + void GuiTable::recomputeDimensions(void) { @@ -347,8 +348,10 @@ GuiTable::modelUpdated(bool completed) if (completed) { recomputeDimensions(); installActionListeners(); - } else // before the update? + } else { // before the update? + mTopWidget = NULL; // No longer valid in general uninstallActionListeners(); + } } gcn::Widget * |