diff --git a/app/core.cpp b/app/core.cpp index abb61c3c3..5e41a8d3a 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -286,7 +286,6 @@ void Core::CreateNewSequence() new_sequence->AddNode(cb2); TimelineOutput* tb = new TimelineOutput(); - tb->AttachTimeline(olive::panel_focus_manager->MostRecentlyFocused()); new_sequence->AddNode(tb); ViewerOutput* vo = new ViewerOutput(); @@ -303,6 +302,8 @@ void Core::CreateNewSequence() cb1->Refresh(); cb2->Refresh(); + tb->AttachTimeline(olive::panel_focus_manager->MostRecentlyFocused()); + olive::panel_focus_manager->MostRecentlyFocused()->SetGraph(new_sequence.get()); // End test code diff --git a/app/widget/timelineview/timelineview.cpp b/app/widget/timelineview/timelineview.cpp index 001267db3..30b6d6fd6 100644 --- a/app/widget/timelineview/timelineview.cpp +++ b/app/widget/timelineview/timelineview.cpp @@ -5,6 +5,7 @@ TimelineView::TimelineView(QWidget *parent) : QGraphicsView(parent) { + setScene(&scene_); } void TimelineView::AddClip(ClipBlock *clip)