Undo not activated when importing clips directly to the timeline with drag and drop, undo/redo stack can be corrupted
@jeff
Submitted by Jeff F.T. Assigned to Alex Băluț @aleb
Description
If you open a project and drag a video clip directly from Nautilus to the timeline, notice that the Undo button doesn't get activated and sensitized.
If you open a project, drag a clip from the media library to the timeline, undo it, redo/undo, and then drag a video clip directly from Nautilus to the timeline, the Undo/redo buttons might still be activatable, but using them will smash your stack:
(pitivi:6913): Gtk-CRITICAL **: gtk_container_remove: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container) || GTK_IS_POPOVER_MENU (container)' failed
(pitivi:6913): Gtk-CRITICAL **: gtk_container_remove: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container) || GTK_IS_POPOVER_MENU (container)' failed
(pitivi:6913): Gtk-CRITICAL **: gtk_container_remove: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container) || GTK_IS_POPOVER_MENU (container)' failed
(pitivi:6913): Gtk-CRITICAL **: gtk_container_remove: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container) || GTK_IS_POPOVER_MENU (container)' failed
Traceback (most recent call last):
File "pitivi/application.py", line 341, in _redoCb
self.action_log.redo()
File "pitivi/undo/undo.py", line 241, in redo
raise UndoWrongStateError()
pitivi.undo.undo.UndoWrongStateError
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=752128