Permalink
Browse files

update 'confirm restart' checkbox after creation

  • Loading branch information...
ivanov committed Jun 15, 2012
1 parent a41db72 commit 39728bdb155c4d0b505fd4d7f2fd1aacab6f9ea0
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/frontend/qt/console/mainwindow.py
@@ -78,7 +78,6 @@ def __init__(self, app,
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 @@ def init_kernel_menu(self):
)
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.

0 comments on commit 39728bd

Please sign in to comment.