Bugfix in item editor
This commit is contained in:
@@ -25,13 +25,14 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class GuiItemEditor(QDialog):
|
class GuiItemEditor(QDialog):
|
||||||
|
|
||||||
def __init__(self, guiParent, theProject, tHandle):
|
def __init__(self, theParent, theProject, tHandle):
|
||||||
QDialog.__init__(self, guiParent)
|
QDialog.__init__(self, theParent)
|
||||||
|
|
||||||
logger.debug("Initialising ItemEditor ...")
|
logger.debug("Initialising ItemEditor ...")
|
||||||
|
|
||||||
self.mainConf = nw.CONFIG
|
self.mainConf = nw.CONFIG
|
||||||
self.theProject = theProject
|
self.theProject = theProject
|
||||||
|
self.theParent = theParent
|
||||||
self.theItem = self.theProject.getItem(tHandle)
|
self.theItem = self.theProject.getItem(tHandle)
|
||||||
|
|
||||||
self.outerBox = QHBoxLayout()
|
self.outerBox = QHBoxLayout()
|
||||||
@@ -53,9 +54,9 @@ class GuiItemEditor(QDialog):
|
|||||||
self.editStatus = QComboBox()
|
self.editStatus = QComboBox()
|
||||||
self.editLayout = QComboBox()
|
self.editLayout = QComboBox()
|
||||||
|
|
||||||
for n in range(len(self.theProject.statusLabels)):
|
for n in range(len(self.theParent.statusLabels)):
|
||||||
self.editStatus.addItem(
|
self.editStatus.addItem(
|
||||||
self.theProject.statusIcons[n], self.theProject.statusLabels[n], n
|
self.theParent.statusIcons[n], self.theParent.statusLabels[n], n
|
||||||
)
|
)
|
||||||
|
|
||||||
self.validLayouts = []
|
self.validLayouts = []
|
||||||
|
|||||||
Reference in New Issue
Block a user