Make some remaining project class bariables private

This commit is contained in:
Veronica Berglyd Olsen
2022-11-08 23:09:08 +01:00
parent 5999e72592
commit 9500c3bdb2
2 changed files with 35 additions and 30 deletions
+4 -5
View File
@@ -447,7 +447,8 @@ class GuiMain(QMainWindow):
if not self.theProject.openProject(projFile):
# The project open failed.
if self.theProject.lockedBy is None:
lockStatus = self.theProject.getLockStatus()
if lockStatus is None:
# The project is not locked, so failed for some other
# reason handled by the project class.
return False
@@ -459,10 +460,8 @@ class GuiMain(QMainWindow):
"'{0}' ({1} {2}), last active on {3}."
)
).format(
self.theProject.lockedBy[0],
self.theProject.lockedBy[1],
self.theProject.lockedBy[2],
datetime.fromtimestamp(int(self.theProject.lockedBy[3])).strftime("%x %X")
lockStatus[0], lockStatus[1], lockStatus[2],
datetime.fromtimestamp(int(lockStatus[3])).strftime("%x %X")
)
except Exception:
lockDetails = ""