Minor code changes for consistency

This commit is contained in:
Veronica K. B. Olsen
2021-02-20 13:40:26 +01:00
parent b868477406
commit c9cab47ce0
5 changed files with 10 additions and 13 deletions
+3 -6
View File
@@ -550,12 +550,9 @@ class GuiMain(QMainWindow):
logger.error("No project open")
return False
if self.theProject.projPath is None:
return False
self.treeView.saveTreeOrder()
self.theProject.saveProject(autoSave=autoSave)
self.theIndex.saveIndex()
if self.theProject.saveProject(autoSave=autoSave):
self.theIndex.saveIndex()
return True
@@ -700,7 +697,7 @@ class GuiMain(QMainWindow):
self.tr("Text files ({0})").format("*.txt"),
self.tr("Markdown files ({0})").format("*.md"),
self.tr("novelWriter files ({0})").format("*.nwd"),
self.tr("All files ({0})").format("*.*"),
self.tr("All files ({0})").format("*"),
]
loadFile, _ = QFileDialog.getOpenFileName(
self, self.tr("Import File"), lastPath, filter=";;".join(extFilter)