--- a/Project/ProjectFormsBrowser.py Wed Aug 17 17:52:52 2016 +0200 +++ b/Project/ProjectFormsBrowser.py Thu Aug 18 17:02:21 2016 +0200 @@ -747,7 +747,7 @@ args = [] self.buf = "" - if self.project.pdata["PROGLANGUAGE"][0] in \ + if self.project.getProjectLanguage() in \ ["Python", "Python2", "Python3"]: if self.project.getProjectType() in ["Qt4", ]: self.uicompiler = 'pyuic4' @@ -775,7 +775,7 @@ uic = Utilities.generatePySideToolPath(self.uicompiler) else: return None - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.getProjectLanguage() == "Ruby": if self.project.getProjectType() == "Qt4": self.uicompiler = 'rbuic4' if Utilities.isWindowsPlatform(): @@ -790,7 +790,7 @@ ofn, ext = os.path.splitext(fn) fn = os.path.join(self.project.ppath, fn) - if self.project.pdata["PROGLANGUAGE"][0] in \ + if self.project.getProjectLanguage() in \ ["Python", "Python2", "Python3"]: dirname, filename = os.path.split(ofn) self.compiledFile = os.path.join(dirname, "Ui_" + filename + ".py") @@ -800,7 +800,7 @@ args.append("--indent={0}".format(indentWidth)) if Preferences.getQt("PyuicFromImports"): args.append("--from-imports") - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.getProjectLanguage() == "Ruby": self.compiledFile = ofn + '.rb' args.append('-x') @@ -965,11 +965,11 @@ QApplication.processEvents() ifn = os.path.join(self.project.ppath, fn) - if self.project.pdata["PROGLANGUAGE"][0] in \ + if self.project.getProjectLanguage() in \ ["Python", "Python2", "Python3"]: dirname, filename = os.path.split(os.path.splitext(ifn)[0]) ofn = os.path.join(dirname, "Ui_" + filename + ".py") - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.getProjectLanguage() == "Ruby": ofn = os.path.splitext(ifn)[0] + '.rb' if not os.path.exists(ofn) or \ os.stat(ifn).st_mtime > os.stat(ofn).st_mtime: