Changed the logic for auto-compilation of forms and resources for projects haven't defined either of them. eric7

Wed, 15 Jun 2022 08:54:13 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 15 Jun 2022 08:54:13 +0200
branch
eric7
changeset 9150
0eab9aafa3b2
parent 9149
1810eaf18d3f
child 9151
8c5296fe3056

Changed the logic for auto-compilation of forms and resources for projects haven't defined either of them.

eric7/Project/ProjectFormsBrowser.py file | annotate | diff | comparison | revisions
eric7/Project/ProjectResourcesBrowser.py file | annotate | diff | comparison | revisions
--- a/eric7/Project/ProjectFormsBrowser.py	Tue Jun 14 12:11:43 2022 +0200
+++ b/eric7/Project/ProjectFormsBrowser.py	Wed Jun 15 08:54:13 2022 +0200
@@ -986,6 +986,10 @@
                 # ignore the request for non Qt GUI projects
                 return
             
+            if len(self.project.pdata["FORMS"]) == 0:
+                # The project does not contain form files.
+                return
+            
             progress = EricProgressDialog(
                 self.tr("Determining changed forms..."),
                 self.tr("Abort"), 0, 100, self.tr("%v/%m Forms"), self)
--- a/eric7/Project/ProjectResourcesBrowser.py	Tue Jun 14 12:11:43 2022 +0200
+++ b/eric7/Project/ProjectResourcesBrowser.py	Wed Jun 15 08:54:13 2022 +0200
@@ -839,6 +839,10 @@
             self.hooks["compileChangedResources"](
                 self.project.pdata["RESOURCES"])
         else:
+            if len(self.project.pdata["RESOURCES"]) == 0:
+                # The project does not contain resource files
+                return
+            
             progress = EricProgressDialog(
                 self.tr("Determining changed resources..."),
                 self.tr("Abort"), 0, 100, self.tr("%v/%m Resources"), self)

eric ide

mercurial