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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 11 Mar 2013 19:00:54 +0100
branch
5_3_x
changeset 2485
05b056d48e28
parent 2483
e9a964218c4e
child 2487
75ee609c3241

Made the activation state of the "Save All" action dependent upon the overall modification status of all open editors.
(grafted from 105d78ba97d42d410ae1c8ca7d63c68f00c5d458)

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
@@ -5658,6 +5658,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