[pitivi] timeline: Fix copy pasting



commit 132b8e64d3263edf535237a49c7562c0909d8042
Author: Thibault Saunier <tsaunier gnome org>
Date:   Thu Dec 24 11:56:45 2015 +0100

    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

 pitivi/timeline/timeline.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index a8ebbbb..3a64146 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]