Core classes should only init with project class and if needed access main gui via project

This commit is contained in:
Veronica K. B. Olsen committed 2021-04-25 17:39:52 +02:00
1 parent 45f726669e
commit 48695651e1
19 files changed
+56 -61

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ class GuiDocMerge(QDialog):
)
return
theDoc = NWDoc(self.theProject, self.theParent)
theDoc = NWDoc(self.theProject)
theText = ""
for tHandle in finalOrder:
docText = theDoc.readDocument(tHandle).rstrip("\n")
+2 -2
View File
@@ -127,7 +127,7 @@ class GuiDocSplit(QDialog):
)
return
theDoc = NWDoc(self.theProject, self.theParent)
theDoc = NWDoc(self.theProject)
theText = theDoc.readDocument(self.sourceItem)
if theText is None:
theText = ""
@@ -259,7 +259,7 @@ class GuiDocSplit(QDialog):
return
self.listBox.clear()
theDoc = NWDoc(self.theProject, self.theParent)
theDoc = NWDoc(self.theProject)
theText = theDoc.readDocument(self.sourceItem)
if theText is None:
theText = ""