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>
This commit is contained in:
parent
2d142b4be3
commit
71ca2ca569
|
@ -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