Commit 132b8e64 authored by Thibault Saunier's avatar Thibault Saunier Committed by Alexandru Băluț

timeline: Fix copy pasting

A group can be pasted even if it does not have a child yet

Groups are pasted from the content of the element they were copied from
at the time they are pasted

Differential Revision: https://phabricator.freedesktop.org/D602
parent ec07eb1b
......@@ -1284,8 +1284,7 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
self.group_action.set_enabled(selection_non_empty)
self.ungroup_action.set_enabled(selection_non_empty)
self.copy_action.set_enabled(selection_non_empty)
can_paste = bool(self.__copiedGroup and
self.__copiedGroup.get_children(True))
can_paste = bool(self.__copiedGroup)
self.paste_action.set_enabled(can_paste)
self.align_action.set_enabled(selection_non_empty)
self.keyframe_action.set_enabled(selection_non_empty)
......
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