summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-07 20:37:42 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-07 20:37:42 +0300
commit466b8491acd56454d82ab70d3fcbc06206b18e6a (patch)
tree62bb61cd05eb43f5c1efe78712fd76dd05a0406f /src/gui
parenta80e10b7ba9771dca3fcddb3f0182a5aa1825226 (diff)
downloadmanaplus-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.gz
manaplus-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.bz2
manaplus-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.xz
manaplus-466b8491acd56454d82ab70d3fcbc06206b18e6a.zip
Fix some crashes in servers switching.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/skilldialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 39be5eea7..db463f9e6 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -391,6 +391,9 @@ void SkillDialog::update()
void SkillDialog::clearSkills()
{
mTabs->removeAll();
+ mDeleteTabs.clear();
+ mDefaultModel = nullptr;
+
delete_all(mSkills);
mSkills.clear();
}