Fix duplicate docs being created

fix edit changes not being retained
fix edit removing new toolbit from diretory
This commit is contained in:
sliptonic
2020-11-07 12:00:58 -06:00
parent 0a77421481
commit 7c3300dbf2
5 changed files with 14 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ class ToolBitEditor(object):
self.model.setHorizontalHeaderLabels(['Set', 'Property', 'Value'])
for i, name in enumerate(self.props):
print("propname: %s " % name)
PathLog.debug("propname: %s " % name)
prop = self.proto.getProperty(name)
isset = hasattr(tool, name)
@@ -133,7 +133,7 @@ class ToolBitEditor(object):
if hasattr(tool, "UserAttributes"):
for key, value in tool.UserAttributes.items():
print(key, value)
PathLog.debug(key, value)
c1 = QtGui.QStandardItem()
c1.setCheckable(False)
c1.setEditable(False)
@@ -169,7 +169,7 @@ class ToolBitEditor(object):
# get the attributes
for i, name in enumerate(self.props):
print('in accept: {}'.format(name))
PathLog.debug('in accept: {}'.format(name))
prop = self.proto.getProperty(name)
if self.model.item(i, 0) is not None:
enabled = self.model.item(i, 0).checkState() == QtCore.Qt.Checked