forked from M-Labs/artiq
1
0
Fork 0

gui/log: fix dock close tracking

This commit is contained in:
Sebastien Bourdeauducq 2016-02-21 05:33:24 +08:00
parent 3b81dd5adc
commit 804592a3f7
1 changed files with 2 additions and 1 deletions

View File

@ -322,9 +322,10 @@ class LogDockManager:
raise NotImplementedError raise NotImplementedError
for name, dock_state in state.items(): for name, dock_state in state.items():
dock = _LogDock(self, name, self.log_sub) dock = _LogDock(self, name, self.log_sub)
self.docks[name] = dock
dock.restore_state(dock_state) dock.restore_state(dock_state)
self.main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock) self.main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock)
self.docks[name] = dock dock.sigClosed.connect(partial(self.on_dock_closed, name))
self.update_closable() self.update_closable()
def first_log_dock(self): def first_log_dock(self):