Split document now preserves item status of the source item
This commit is contained in:
@@ -199,6 +199,7 @@ class GuiDocSplit(QDialog):
|
|||||||
nHandle = self.theProject.newFile(wTitle, srcItem.itemClass, fHandle)
|
nHandle = self.theProject.newFile(wTitle, srcItem.itemClass, fHandle)
|
||||||
newItem = self.theProject.projTree[nHandle]
|
newItem = self.theProject.projTree[nHandle]
|
||||||
newItem.setLayout(itemLayout)
|
newItem.setLayout(itemLayout)
|
||||||
|
newItem.setStatus(srcItem.itemStatus)
|
||||||
logger.verbose(
|
logger.verbose(
|
||||||
"Creating new document %s with text from line %d to %d" % (
|
"Creating new document %s with text from line %d to %d" % (
|
||||||
nHandle, iStart, iEnd-1
|
nHandle, iStart, iEnd-1
|
||||||
|
|||||||
Reference in New Issue
Block a user