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/205/head
parent
54a2fee810
commit
9b59d8f9f6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue