summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2009-12-05 02:33:52 +0200
committerJared Adams <jaxad0127@gmail.com>2009-12-04 18:56:18 -0700
commit1eb02f83a5d3895e4e18db30ea10d88da94ba4c0 (patch)
treeee1696d4055dd6945e714b8896ed13a187946546 /src/gui/serverdialog.cpp
parent91af32bac65b20a446f2e49f023d3d526729e8ea (diff)
downloadmana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.gz
mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.bz2
mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.xz
mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.zip
Fixing multi thread crash.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 9c1494d0..ec2b0cf4 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -171,6 +171,10 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
ServerDialog::~ServerDialog()
{
+ if (mDownload)
+ {
+ mDownload->cancel();
+ }
delete mServersListModel;
}