From 488512231cadfb51f3b4837869a67f208acd20e4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 28 Aug 2019 17:32:30 +1000 Subject: [PATCH] gui: reset the signal list after disconnecting them Signed-off-by: Peter Hutterer --- tuhi/gui/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tuhi/gui/window.py b/tuhi/gui/window.py index 22f8ac0..85a11f9 100644 --- a/tuhi/gui/window.py +++ b/tuhi/gui/window.py @@ -244,6 +244,7 @@ class MainWindow(Gtk.ApplicationWindow): # register. for sig in self._signals: device.disconnect(sig) + self._signals = [] def _add_perspective(self, perspective): self.stack_perspectives.add_named(perspective, perspective.name)