summaryrefslogtreecommitdiff
path: root/src/gui/widgets/container.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 03:43:30 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 03:43:30 +0200
commitbb45602e36b4e8869c2d888277d706124e131904 (patch)
tree23a627aba69f8afdf3cf528cfb1a65cced791915 /src/gui/widgets/container.cpp
parent33032808e024b6dade5b751f15f4878edd507787 (diff)
downloadmana-client-bb45602e36b4e8869c2d888277d706124e131904.tar.gz
mana-client-bb45602e36b4e8869c2d888277d706124e131904.tar.bz2
mana-client-bb45602e36b4e8869c2d888277d706124e131904.tar.xz
mana-client-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.cpp')
-rw-r--r--src/gui/widgets/container.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/container.cpp b/src/gui/widgets/container.cpp
index a2b3ee78..61211ddd 100644
--- a/src/gui/widgets/container.cpp
+++ b/src/gui/widgets/container.cpp
@@ -62,3 +62,9 @@ void Container::updateLayout()
int h = area.height;
getLayout().reflow(w, h);
}
+
+void Container::clearLayout()
+{
+ delete mLayoutHelper;
+ mLayoutHelper = 0;
+}