Skip to content

Commit

Permalink
Bugfixed introduced in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperenor authored and Hyperenor committed Aug 23, 2018
1 parent 11b8415 commit 3f62563
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion OSelectorTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def init_settings(self):
def after_tree_built(self):
self.treeAnimFiles.cleanup()
self.treeAnimFiles.itemClicked.connect(self.slot_lcd_display_anim_checked)
self.treeAnimFiles.itemChanged.connect(self.slot_lcd_display_anim_checked)
self.slot_lcd_display_anim_checked()

def toggle_window(self, state):
Expand Down
5 changes: 0 additions & 5 deletions widget/AnimTreeItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def add_nested_child(self, item):
try:
test = splitter.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
AnimTreeItem.convert_to_anim_tree_item(splitter)
if splitter.bIsSplitter:
if splitter.childCount() < splitter.maxChildCount:
Expand All @@ -75,7 +74,6 @@ def add_nested_child(self, item):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
AnimTreeItem.convert_to_anim_tree_item(child)

if child.bIsSplitter:
Expand All @@ -98,7 +96,6 @@ def animation_count(self, state=Qt.Unchecked):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
AnimTreeItem.convert_to_anim_tree_item(child)
counter += child.animation_count(state)

Expand All @@ -114,7 +111,6 @@ def animations_id(self):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
AnimTreeItem.convert_to_anim_tree_item(child)
animations.extend(child.animations_id())
return animations
Expand All @@ -136,7 +132,6 @@ def to_xml(self, parent, level):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
AnimTreeItem.convert_to_anim_tree_item(child)
child.to_xml(elt, level + 1)
else:
Expand Down
3 changes: 0 additions & 3 deletions widget/AnimTreeWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def animation_count(self, state=Qt.Unchecked):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
widget.AnimTreeItem.AnimTreeItem.convert_to_anim_tree_item(child)
counter += child.animation_count(state)
return counter
Expand All @@ -190,7 +189,6 @@ def animations_id(self):
try:
test = child.bIsSplitter
except AttributeError:
log.warning("TreeItem detected ! Should be AnimTreeItem, trying to convert it")
widget.AnimTreeItem.AnimTreeItem.convert_to_anim_tree_item(child)

animations.extend(child.animations_id())
Expand Down Expand Up @@ -301,7 +299,6 @@ def create_from_packages(self, packages):
answer = question(None, "Duplicates ?", "Do you want to ignore already existing animations ?")
if answer == QMessageBox.Yes:
animations = self.animations_id()

root = widget.AnimTreeItem.AnimTreeItem(self)
for package in packages:
section = widget.AnimTreeItem.AnimTreeItem()
Expand Down

0 comments on commit 3f62563

Please sign in to comment.