ask to save modified files before freeze

Wed, 10 Jul 2013 20:46:57 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Wed, 10 Jul 2013 20:46:57 +0200
changeset 52
43d760ff8b3f
parent 50
ed85ec1358f0
child 53
bf44b03905d0

ask to save modified files before freeze

ChangeLog file | annotate | diff | comparison | revisions
PluginCxFreeze.py file | annotate | diff | comparison | revisions
PluginCxFreeze.zip file | annotate | diff | comparison | revisions
--- a/ChangeLog	Mon Jul 08 18:40:47 2013 +0200
+++ b/ChangeLog	Wed Jul 10 20:46:57 2013 +0200
@@ -2,6 +2,7 @@
 ---------
 Version 5.2.0:
 Compatible with Eric5.1.0 or greater
+- ask to save modified files before freeze
 - use cx_freeze script based on the selected project language
 - disable menu item if not a Python 2 or 3 project
 - filedialog for the application icon
--- a/PluginCxFreeze.py	Mon Jul 08 18:40:47 2013 +0200
+++ b/PluginCxFreeze.py	Wed Jul 10 20:46:57 2013 +0200
@@ -339,6 +339,10 @@
                 self.trUtf8("""The cxfreeze executable could not be found."""))
             return
 
+        # check if all files saved and errorfree before continue
+        if not project.checkAllScriptsDirty(reportSyntaxErrors=True):
+            return
+
         from CxFreeze.CxfreezeConfigDialog import CxfreezeConfigDialog
         parms = project.getData('PACKAGERSPARMS', "CXFREEZE")
         dlg = CxfreezeConfigDialog(project, exe, parms)
Binary file PluginCxFreeze.zip has changed

eric ide

mercurial