diff --git a/convo.py b/convo.py index 3ecb90a..198020e 100644 --- a/convo.py +++ b/convo.py @@ -332,7 +332,7 @@ class PesterText(QtWidgets.QTextEdit): self.mainwindow = self.parent().mainwindow else: self.mainwindow = self.parent() - if type(parent.parent()) is PesterTabWindow: + if type(parent.parent) is PesterTabWindow: self.tabobject = parent.parent() self.hasTabs = True else: diff --git a/memos.py b/memos.py index 4bd99a7..6e4a4c2 100644 --- a/memos.py +++ b/memos.py @@ -265,7 +265,7 @@ class MemoText(PesterText): self.mainwindow = self.parent().mainwindow else: self.mainwindow = self.parent() - if type(parent.parent()) is PesterTabWindow: + if type(parent.parent) is PesterTabWindow: self.tabobject = parent.parent() self.hasTabs = True else: