gui: fix two signal disconnections

Both of the signals here are connect to the device, not Tuhi. The only reason
this worked was because the signal sent by the dbus bindings had the device
twice in the arguments and 'tuhi' was actually the device.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/208/head
Peter Hutterer 2019-08-28 10:32:09 +10:00 committed by Benjamin Tissoires
parent 2d142b4be3
commit 71ca2ca569
1 changed files with 2 additions and 2 deletions

View File

@ -101,13 +101,13 @@ class SetupDialog(Gtk.Dialog):
device.register()
def _on_button_press_required(self, tuhi, device):
tuhi.disconnect(self._sig)
device.disconnect(self._sig)
self.stack.set_visible_child_name('page2')
self._sig = device.connect('registered', self._on_registered)
def _on_registered(self, tuhi, device):
tuhi.disconnect(self._sig)
device.disconnect(self._sig)
self.device = device
self.response(Gtk.ResponseType.OK)