Commit 2f5abc53 authored by Lars Kruse's avatar Lars Kruse

fix minor GTK warnings or typos

parent 7d8bd77b
......@@ -169,7 +169,7 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
changed_set_event = group["changed_set_event"]
if changed_set_event:
self.core.register_event(changed_set_event,
self._update_widgets_visibility)
self._update_widgets_visibility, group_name)
del self._groups[group_name]
def unregister_parameter_set(self, group_name, set_name):
......
......@@ -47,7 +47,8 @@ class ToolpathProcessors(pycam.Plugins.ListPluginBase):
# we need to clear the whole path down to the "real" item
parent = notebook
while not child in [entry[0] for entry in self._pref_items]:
parent.remove(child)
if child.get_parent():
parent.remove(child)
parent = child
try:
child = child.get_children()[0]
......
......@@ -446,7 +446,8 @@ class ListPluginBase(PluginBase, list):
treemodel.append((uuid, ))
# reorder the treemodel according to the current list
sorted_indices = [current_uuids.index(row[0]) for row in treemodel]
treemodel.reorder(sorted_indices)
if sorted_indices:
treemodel.reorder(sorted_indices)
self.core.emit_event("tool-list-changed")
def get_by_path(self, path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment