diff --git a/basedownloader.py b/basedownloader.py index d9a394a..80a321a 100644 --- a/basedownloader.py +++ b/basedownloader.py @@ -1,8 +1,7 @@ -from PyQt4 import QtGui, QtCore import json, urllib, sys, requests, time, os, zipfile, sha +from PyQt4 import QtGui, QtCore returncode = -4 -msgbox = ["", "", ""] def downloadVanilla(): circus = QtGui.QProgressDialog() @@ -30,9 +29,6 @@ def downloadVanilla(): circus.exec_() if thr.isRunning(): thr.wait() - if msgbox[0]: - getattr(QtGui.QMessageBox, msgbox[0])(None, msgbox[1], msgbox[2]) - print returncode return returncode @@ -47,7 +43,7 @@ class downloadThread(QtCore.QThread): self.jm = jm def run(self): - global returncode, msgbox + global returncode try: manifest = json.load(urllib.urlopen("http://s3.wasabisys.com/ao-manifests/assets.json"))