Skip to content

Commit

Permalink
Editor: Avoid an infinite loop when using "Close all files" action
Browse files Browse the repository at this point in the history
Fixes #2680
  • Loading branch information
ccordoba12 committed Sep 18, 2015
1 parent d3801ce commit 9278a70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spyderlib/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ def close_file(self, index=None, force=False):
self.set_stack_index(new_index)
if self.get_stack_count() == 0:
self.emit(SIGNAL('sig_new_file()'))
return False
return is_ok

def close_all_files(self):
Expand Down

0 comments on commit 9278a70

Please sign in to comment.