summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-25 14:52:16 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-25 14:52:16 -0300
commitc715e5fbd3f48f9a3555be659ccfe859f97c9d7c (patch)
tree925059c3418171e17bfe716482bfb72b5146a4c4 /src/leap/gui/mainwindow.py
parentf60413b6e93089e8f5b1bc6ecd8e87f1b669483e (diff)
parent4e86d1bd29890cfb7bc02f5bcf434e175d810d1a (diff)
Merge remote-tracking branch 'drebs/bug/2937-events-should-be-asynchronous' into develop
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index baa5f385..1a82d600 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -117,13 +117,12 @@ class MainWindow(QtGui.QMainWindow):
QtGui.QMainWindow.__init__(self)
# register leap events
-
- # XXX ------- this is blocking -----------
register(signal=proto.UPDATER_NEW_UPDATES,
- callback=self._new_updates_available)
+ callback=self._new_updates_available,
+ reqcbk=lambda resp: None) # make rpc call async
register(signal=proto.RAISE_WINDOW,
- callback=self._on_raise_window_event)
- # XXX ------- this is blocking -----------
+ callback=self._on_raise_window_event,
+ reqcbk=lambda resp: None) # make rpc call async
self._quit_callback = quit_callback