diff --git a/IPython/frontend/qt/console/history_console_widget.py b/IPython/frontend/qt/console/history_console_widget.py index 6bd18d4..ce3692c 100644 --- a/IPython/frontend/qt/console/history_console_widget.py +++ b/IPython/frontend/qt/console/history_console_widget.py @@ -31,20 +31,6 @@ class HistoryConsoleWidget(ConsoleWidget): self._history_index = 0 self._history_prefix = '' - self.history_action = QtGui.QAction("History", - self, - statusTip="show command history", - triggered=self.history_magic) - self.history_action.setDisabled(True) - self.addAction(self.history_action) - - self.save_action = QtGui.QAction("Export History ", - self, - statusTip="Export History as Python File", - triggered=self.save_magic) - self.save_action.setDisabled(True) - self.addAction(self.save_action) - #--------------------------------------------------------------------------- # 'ConsoleWidget' public interface #--------------------------------------------------------------------------- diff --git a/IPython/frontend/qt/console/qtconsoleapp.py b/IPython/frontend/qt/console/qtconsoleapp.py index df6045c..af60758 100644 --- a/IPython/frontend/qt/console/qtconsoleapp.py +++ b/IPython/frontend/qt/console/qtconsoleapp.py @@ -184,17 +184,22 @@ class MainWindow(QtGui.QMainWindow): print "trying to add unexisting action (reset), skipping" try: - self.magicMenu.addAction(self._frontend.history_action) - self._frontend.history_action.setEnabled(True) + self.history_action = QtGui.QAction("History", + self, + statusTip="show command history", + triggered=self._frontend.history_magic) + self.magicMenu.addAction(self.history_action) except AttributeError: print "trying to add unexisting action (history), skipping" try: - self.magicMenu.addAction(self._frontend.save_action) - self._frontend.save_action.setEnabled(True) + self.save_action = QtGui.QAction("Export History ", + self, + statusTip="Export History as Python File", + triggered=self._frontend.save_magic) + self.magicMenu.addAction(self.save_action) except AttributeError: print "trying to add unexisting action (save), skipping" - self._frontend.reset_action.setEnabled(True) try: self.clear_action = QtGui.QAction("Clear",