From 39728bdb155c4d0b505fd4d7f2fd1aacab6f9ea0 2012-06-15 14:48:03 From: Paul Ivanov Date: 2012-06-15 14:48:03 Subject: [PATCH] update 'confirm restart' checkbox after creation --- diff --git a/IPython/frontend/qt/console/mainwindow.py b/IPython/frontend/qt/console/mainwindow.py index 3ca94af..60c5bf0 100644 --- a/IPython/frontend/qt/console/mainwindow.py +++ b/IPython/frontend/qt/console/mainwindow.py @@ -78,7 +78,6 @@ class MainWindow(QtGui.QMainWindow): self.tab_widget.setDocumentMode(True) self.tab_widget.setTabsClosable(True) self.tab_widget.tabCloseRequested[int].connect(self.close_tab) - self.tab_widget.currentChanged.connect(self.update_restart_checkbox) self.setCentralWidget(self.tab_widget) # hide tab bar at first, since we have no tabs: @@ -562,6 +561,7 @@ class MainWindow(QtGui.QMainWindow): ) self.add_menu_action(self.kernel_menu, self.confirm_restart_kernel_action) + self.tab_widget.currentChanged.connect(self.update_restart_checkbox) def _make_dynamic_magic(self,magic): """Return a function `fun` that will execute `magic` on active frontend.