Split document now preserves item status of the source item

This commit is contained in:
Veronica K. B. Olsen
2020-09-01 23:27:48 +02:00
parent 9aa0e259fe
commit 123b986a07
+1
View File
@@ -199,6 +199,7 @@ class GuiDocSplit(QDialog):
nHandle = self.theProject.newFile(wTitle, srcItem.itemClass, fHandle)
newItem = self.theProject.projTree[nHandle]
newItem.setLayout(itemLayout)
newItem.setStatus(srcItem.itemStatus)
logger.verbose(
"Creating new document %s with text from line %d to %d" % (
nHandle, iStart, iEnd-1