837 """ |
837 """ |
838 if self.hooks["compileChangedResources"] is not None: |
838 if self.hooks["compileChangedResources"] is not None: |
839 self.hooks["compileChangedResources"]( |
839 self.hooks["compileChangedResources"]( |
840 self.project.pdata["RESOURCES"]) |
840 self.project.pdata["RESOURCES"]) |
841 else: |
841 else: |
|
842 if len(self.project.pdata["RESOURCES"]) == 0: |
|
843 # The project does not contain resource files |
|
844 return |
|
845 |
842 progress = EricProgressDialog( |
846 progress = EricProgressDialog( |
843 self.tr("Determining changed resources..."), |
847 self.tr("Determining changed resources..."), |
844 self.tr("Abort"), 0, 100, self.tr("%v/%m Resources"), self) |
848 self.tr("Abort"), 0, 100, self.tr("%v/%m Resources"), self) |
845 progress.setMinimumDuration(0) |
849 progress.setMinimumDuration(0) |
846 progress.setWindowTitle(self.tr("Resources")) |
850 progress.setWindowTitle(self.tr("Resources")) |