From 71ca2ca5697b62ac418774943ca97e87ccd094d9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 28 Aug 2019 10:32:09 +1000 Subject: [PATCH] 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 --- tuhi/gui/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuhi/gui/window.py b/tuhi/gui/window.py index 2954789..8805a80 100644 --- a/tuhi/gui/window.py +++ b/tuhi/gui/window.py @@ -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)