Remove the showStatus flag from document handling
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user