summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-06 01:26:05 +0900
committerkali <kali@leap.se>2012-11-06 01:26:05 +0900
commitc387a52f841e8933ed7282d198ed1ece863979fc (patch)
treec3465991425dc6de6ae9296b931e8a805491fa05 /src/leap/baseapp
parent0a8a34879a701a2d045f628403c6a0f8be21dc82 (diff)
new validation pages in a reusable MVC style
using progress indicators inside QTableWidget
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/mainwindow.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 8f359dbf..8e12b5f6 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -147,16 +147,15 @@ class LeapWindow(QtGui.QMainWindow,
self.initchecks.begin()
-class InitChecksThread(QtCore.QThread):
- # XXX rename as a generic QThread class,
- # has nothing specific to initchecks
+class FunThread(QtCore.QThread):
def __init__(self, fun, parent=None):
QtCore.QThread.__init__(self, parent)
self.fun = fun
def run(self):
- self.fun()
+ if self.fun:
+ self.fun()
def begin(self):
self.start()