summaryrefslogtreecommitdiff
path: root/src/gui/table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/table.cpp')
-rw-r--r--src/gui/table.cpp5
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 *