summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-13 09:43:13 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-13 09:43:13 -0300
commit70c402fe170ca4e01159b03739b7cacda7b0dfd0 (patch)
treef4e552d59a2e8b651ae754e80c308c4c12984857 /src/leap/gui/mainwindow.py
parenta3d01f3285c7432675649e26aa95e31a64b73cbf (diff)
Add mtime check for existing json definitions before download
Also, wait for threads to finish when quitting
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index f8ca4c35..6f7f646e 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -139,7 +139,15 @@ class MainWindow(QtGui.QMainWindow):
QtCore.QCoreApplication.instance().connect(
QtCore.QCoreApplication.instance(),
QtCore.SIGNAL("aboutToQuit()"),
+ self._vpn.wait)
+ QtCore.QCoreApplication.instance().connect(
+ QtCore.QCoreApplication.instance(),
+ QtCore.SIGNAL("aboutToQuit()"),
self._checker_thread.set_should_quit)
+ QtCore.QCoreApplication.instance().connect(
+ QtCore.QCoreApplication.instance(),
+ QtCore.SIGNAL("aboutToQuit()"),
+ self._checker_thread.wait)
self.ui.chkRemember.stateChanged.connect(
self._remember_state_changed)