Bugfix in item editor

This commit is contained in:
Veronica K. B. Olsen
2019-05-12 19:54:49 +02:00
parent a94715ba71
commit a882ad2c22
+5 -4
View File
@@ -25,13 +25,14 @@ logger = logging.getLogger(__name__)
class GuiItemEditor(QDialog):
def __init__(self, guiParent, theProject, tHandle):
QDialog.__init__(self, guiParent)
def __init__(self, theParent, theProject, tHandle):
QDialog.__init__(self, theParent)
logger.debug("Initialising ItemEditor ...")
self.mainConf = nw.CONFIG
self.theProject = theProject
self.theParent = theParent
self.theItem = self.theProject.getItem(tHandle)
self.outerBox = QHBoxLayout()
@@ -53,9 +54,9 @@ class GuiItemEditor(QDialog):
self.editStatus = QComboBox()
self.editLayout = QComboBox()
for n in range(len(self.theProject.statusLabels)):
for n in range(len(self.theParent.statusLabels)):
self.editStatus.addItem(
self.theProject.statusIcons[n], self.theProject.statusLabels[n], n
self.theParent.statusIcons[n], self.theParent.statusLabels[n], n
)
self.validLayouts = []