From 804592a3f76fa78c475b30c286cf48729660579b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 21 Feb 2016 05:33:24 +0800 Subject: [PATCH] gui/log: fix dock close tracking --- artiq/gui/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/gui/log.py b/artiq/gui/log.py index 7ad27f47e..3a33a9d3d 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -322,9 +322,10 @@ class LogDockManager: raise NotImplementedError for name, dock_state in state.items(): dock = _LogDock(self, name, self.log_sub) + self.docks[name] = dock dock.restore_state(dock_state) self.main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock) - self.docks[name] = dock + dock.sigClosed.connect(partial(self.on_dock_closed, name)) self.update_closable() def first_log_dock(self):