GUI classes should only init with main GUI as parent

This commit is contained in:
Veronica K. B. Olsen
2021-04-25 17:50:11 +02:00
parent 48695651e1
commit 746268c3ef
11 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)
class GuiDocMerge(QDialog):
def __init__(self, theParent, theProject):
def __init__(self, theParent):
QDialog.__init__(self, theParent)
logger.debug("Initialising GuiDocMerge ...")
@@ -49,7 +49,7 @@ class GuiDocMerge(QDialog):
self.mainConf = nw.CONFIG
self.theParent = theParent
self.theProject = theProject
self.theProject = theParent.theProject
self.sourceItem = None
self.outerBox = QVBoxLayout()