- added a protection for when saving a file first time, it require a saved path and if none then it use the current working directory

This commit is contained in:
Marius Stanciu
2019-02-09 01:58:08 +02:00
committed by Marius S
parent 8b0a9a429a
commit d17fc12196
2 changed files with 3 additions and 1 deletions

View File

@@ -1665,6 +1665,8 @@ class App(QtCore.QObject):
loc = self.defaults["global_last_save_folder"]
if loc is None:
loc = self.defaults["global_last_folder"]
if loc is None:
loc = os.path.dirname(__file__)
return loc
def report_usage(self, resource):