Skip to content

Commit

Permalink
Merge pull request ipython#1950 from ccordoba12/copy-no-pager
Browse files Browse the repository at this point in the history
Fix for copy action (Ctrl+C) when there is no pager defined in qtconsole
  • Loading branch information
minrk committed Jun 13, 2012
2 parents 700a887 + d252370 commit 015f6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/frontend/qt/console/frontend_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__(self, *args, **kw):
def copy(self):
""" Copy the currently selected text to the clipboard, removing prompts.
"""
if self._page_control.hasFocus():
if self._page_control is not None and self._page_control.hasFocus():
self._page_control.copy()
elif self._control.hasFocus():
text = self._control.textCursor().selection().toPlainText()
Expand Down

0 comments on commit 015f6c7

Please sign in to comment.