Skip to content

Commit

Permalink
Merge pull request #4105 from ccordoba12/fix-ed-new-window
Browse files Browse the repository at this point in the history
PR: Fix hard crash when trying to open files in a new editor window
  • Loading branch information
ccordoba12 authored Feb 5, 2017
2 parents 993a5a0 + 81b3ea3 commit 68e31e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ def get_focus_widget_properties(self):
"""Get properties of focus widget
Returns tuple (widget, properties) where properties is a tuple of
booleans: (is_console, not_readonly, readwrite_editor)"""
widget = self.focusWidget()
widget = QApplication.focusWidget()
from spyder.widgets.shell import ShellBaseWidget
from spyder.widgets.editor import TextEditBaseWidget

Expand Down

0 comments on commit 68e31e8

Please sign in to comment.