eric6/ViewManager/ViewManager.py

changeset 8207
d359172d11be
parent 8150
fc1ae39af8c9
child 8218
7c09585bd960
--- a/eric6/ViewManager/ViewManager.py	Fri Apr 09 18:13:36 2021 +0200
+++ b/eric6/ViewManager/ViewManager.py	Fri Apr 09 18:38:01 2021 +0200
@@ -4399,11 +4399,7 @@
         @return flag indicating successful reset of all dirty flags
         @rtype bool
         """
-        for editor in self.editors:
-            if not self.checkDirty(editor):
-                return False
-        
-        return True
+        return all(self.checkDirty(editor) for editor in self.editors)
         
     def checkFileDirty(self, fn):
         """

eric ide

mercurial