Skip to content

Commit

Permalink
move open online help to be on all plateform
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored and fperez committed Oct 17, 2011
1 parent e80884f commit 564d1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IPython/frontend/qt/console/qtconsoleapp.py
Expand Up @@ -1005,6 +1005,10 @@ def init_window_shortcut(self):
self.window.window_menu.addAction(self.tabSameKernalAct)
self.window.window_menu.addSeparator()

self.onlineHelpAct = QtGui.QAction("Open Online &Help",
self.window,
triggered=self._open_online_help)
self.window.help_menu.addAction(self.onlineHelpAct)
# creating shortcut in menubar only for Mac OS as I don't
# know the shortcut or if the windows manager assign it in
# other platform.
Expand All @@ -1020,9 +1024,6 @@ def init_window_shortcut(self):
statusTip="Maximize the window/Restore Normal Size",
triggered=self.toggleMaximized)

self.onlineHelpAct = QtGui.QAction("Open Online &Help",
self.window,
triggered=self._open_online_help)

self.window_menu = self.window.window_menu

Expand All @@ -1034,7 +1035,6 @@ def init_window_shortcut(self):
self.window_menu.addSeparator()
self.window_menu.addAction(self.fullScreenAct)

self.window.help_menu.addAction(self.onlineHelpAct)
else:
# if we don't put it in a menu, we add it to the window so
# that it can still be triggerd by shortcut
Expand Down

0 comments on commit 564d1ca

Please sign in to comment.