summaryrefslogtreecommitdiff
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
parenta80e10b7ba9771dca3fcddb3f0182a5aa1825226 (diff)
downloadmv-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.gz
mv-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.bz2
mv-466b8491acd56454d82ab70d3fcbc06206b18e6a.tar.xz
mv-466b8491acd56454d82ab70d3fcbc06206b18e6a.zip
Fix some crashes in servers switching.
-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();
}