diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-02 03:43:30 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-02 03:43:30 +0200 |
commit | bb45602e36b4e8869c2d888277d706124e131904 (patch) | |
tree | 23a627aba69f8afdf3cf528cfb1a65cced791915 /src/gui/widgets/container.h | |
parent | 33032808e024b6dade5b751f15f4878edd507787 (diff) | |
download | mana-bb45602e36b4e8869c2d888277d706124e131904.tar.gz mana-bb45602e36b4e8869c2d888277d706124e131904.tar.bz2 mana-bb45602e36b4e8869c2d888277d706124e131904.tar.xz mana-bb45602e36b4e8869c2d888277d706124e131904.zip |
Crash fix when re-entering the game
Throw away the old layout rather than trying to reuse it and crashing
cause of collisions.
Diffstat (limited to 'src/gui/widgets/container.h')
-rw-r--r-- | src/gui/widgets/container.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/container.h b/src/gui/widgets/container.h index 2b8039f4..0f1d1bb7 100644 --- a/src/gui/widgets/container.h +++ b/src/gui/widgets/container.h @@ -65,6 +65,12 @@ class Container : public gcn::Container */ void updateLayout(); + /** + * Removes the layout, making it forget about any widgets (needed when + * reusing a container with new widgets). + */ + void clearLayout(); + private: LayoutHelper *mLayoutHelper; }; |