- fixed Properties Tool due of recent changes to the FCTree widget
This commit is contained in:
@@ -703,7 +703,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
self.menuprojectcolor.addSeparator()
|
||||
|
||||
self.menuproject_custom = self.menuprojectcolor.addAction(
|
||||
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Transparency'))
|
||||
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Opacity'))
|
||||
|
||||
self.menuproject_custom = self.menuprojectcolor.addAction(
|
||||
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Default'))
|
||||
|
||||
@@ -187,7 +187,11 @@ class FCTree(QtWidgets.QTreeWidget):
|
||||
header.resizeSection(column, width)
|
||||
|
||||
def is_editable(self, tested_col):
|
||||
return False if tested_col in self.protected_column else True
|
||||
try:
|
||||
ret_val = False if tested_col in self.protected_column else True
|
||||
except TypeError:
|
||||
ret_val = False
|
||||
return ret_val
|
||||
|
||||
def addParent(self, parent, title, expanded=False, color=None, font=None):
|
||||
item = QtWidgets.QTreeWidgetItem(parent, [title])
|
||||
|
||||
Reference in New Issue
Block a user