Made the activation state of the "Save All" action dependent upon the overall modification status of all open editors.

Mon, 11 Mar 2013 19:00:54 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 11 Mar 2013 19:00:54 +0100
changeset 2484
105d78ba97d4
parent 2481
60da8e6c0547
child 2486
e16c9ced6ae5

Made the activation state of the "Save All" action dependent upon the overall modification status of all open editors.

ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/ViewManager/ViewManager.py	Mon Mar 11 18:46:38 2013 +0100
+++ b/ViewManager/ViewManager.py	Mon Mar 11 19:00:54 2013 +0100
@@ -5734,6 +5734,12 @@
             
             self.checkActions.emit(editor)
         
+        saveAllEnable = False
+        for editor in self.editors:
+            if editor.isModified():
+                saveAllEnable = True
+        self.saveAllAct.setEnabled(saveAllEnable)
+        
     def preferencesChanged(self):
         """
         Public slot to handle the preferencesChanged signal.

eric ide

mercurial