diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-10-18 13:08:58 +0200 |
---|---|---|
committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-10-18 13:33:46 +0200 |
commit | e49f545dc6f44f9297998379543a7b706953f58a (patch) | |
tree | fcc6c1bd1faabed48b2fed96e5339de3ae10e770 /sources/pyside-tools | |
parent | 28ee7caf69f2b5c151ff47b772ffc28e152eb767 (diff) |
Project tool: fix attribute error
- there was no setter for self.main_file. This is now added.
Pick-to: 6.4
Change-Id: Iebb131e36f5bdc29dc7eff44b98e3defceda4416
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools')
-rw-r--r-- | sources/pyside-tools/project.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside-tools/project.py b/sources/pyside-tools/project.py index d6ec804d6..5e157945e 100644 --- a/sources/pyside-tools/project.py +++ b/sources/pyside-tools/project.py @@ -304,9 +304,9 @@ class Project: self._qml_files.append(file) elif file.suffix == ".py": if file.name == "main.py": - self._main_file = file + self.main_file = file self._python_files.append(file) - if not self._main_file: + if not self.main_file: self._find_main_file() self._qml_module_check() @@ -322,6 +322,10 @@ class Project: def main_file(self): return self._main_file + @main_file.setter + def main_file(self, main_file): + self._main_file = main_file + @property def python_files(self): return self._python_files |