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
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):