From 9278a70b03f086b43ea6cde097ce833fb3f2a5b9 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Fri, 18 Sep 2015 17:09:49 -0500 Subject: [PATCH] Editor: Avoid an infinite loop when using "Close all files" action Fixes #2680 --- spyderlib/widgets/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py index d9cdf16ff37..762fc6fdb69 100644 --- a/spyderlib/widgets/editor.py +++ b/spyderlib/widgets/editor.py @@ -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):