Remove the showStatus flag from document handling

This commit is contained in:
Veronica K. B. Olsen
2021-04-25 17:16:57 +02:00
parent d473615ccf
commit 45f726669e
7 changed files with 29 additions and 28 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ class GuiDocMerge(QDialog):
theDoc = NWDoc(self.theProject, self.theParent)
theText = ""
for tHandle in finalOrder:
docText = theDoc.readDocument(tHandle, False).rstrip("\n")
docText = theDoc.readDocument(tHandle).rstrip("\n")
if docText:
theText += docText+"\n\n"
@@ -131,7 +131,7 @@ class GuiDocMerge(QDialog):
newItem = self.theProject.projTree[nHandle]
newItem.setStatus(srcItem.itemStatus)
theDoc.readDocument(nHandle, False)
theDoc.readDocument(nHandle)
theDoc.writeDocument(theText)
self.theParent.treeView.revealNewTreeItem(nHandle)
self.theParent.openDocument(nHandle, doScroll=True)
+3 -3
View File
@@ -128,7 +128,7 @@ class GuiDocSplit(QDialog):
return
theDoc = NWDoc(self.theProject, self.theParent)
theText = theDoc.readDocument(self.sourceItem, False)
theText = theDoc.readDocument(self.sourceItem)
if theText is None:
theText = ""
@@ -217,7 +217,7 @@ class GuiDocSplit(QDialog):
theText = "\n".join(theLines[iStart:iEnd])
theText = theText.rstrip("\n") + "\n\n"
theDoc.readDocument(nHandle, False)
theDoc.readDocument(nHandle)
theDoc.writeDocument(theText)
theDoc.clearDocument()
self.theParent.treeView.revealNewTreeItem(nHandle)
@@ -260,7 +260,7 @@ class GuiDocSplit(QDialog):
self.listBox.clear()
theDoc = NWDoc(self.theProject, self.theParent)
theText = theDoc.readDocument(self.sourceItem, False)
theText = theDoc.readDocument(self.sourceItem)
if theText is None:
theText = ""