gui: reset the signal list after disconnecting them
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c0628f1f19
commit
488512231c
|
@ -244,6 +244,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||||
# register.
|
# register.
|
||||||
for sig in self._signals:
|
for sig in self._signals:
|
||||||
device.disconnect(sig)
|
device.disconnect(sig)
|
||||||
|
self._signals = []
|
||||||
|
|
||||||
def _add_perspective(self, perspective):
|
def _add_perspective(self, perspective):
|
||||||
self.stack_perspectives.add_named(perspective, perspective.name)
|
self.stack_perspectives.add_named(perspective, perspective.name)
|
||||||
|
|
Loading…
Reference in New Issue