[vlmc-devel] Timeline: Let the TracksScene live without & across projects

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 1 00:13:29 CEST 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr  1 01:12:35 2014 +0300| [0d3a62a4d0d07b5cbd3375b0bee32213114d0b1b] | committer: Hugo Beauzée-Luyssen

Timeline: Let the TracksScene live without & across projects

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0d3a62a4d0d07b5cbd3375b0bee32213114d0b1b
---

 src/Gui/timeline/Timeline.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Gui/timeline/Timeline.cpp b/src/Gui/timeline/Timeline.cpp
index 26a533e..2440d45 100644
--- a/src/Gui/timeline/Timeline.cpp
+++ b/src/Gui/timeline/Timeline.cpp
@@ -53,6 +53,7 @@ Timeline::Timeline( QWidget *parent )
 
     connect( Core::getInstance(), SIGNAL( projectLoading( Project* ) ),
              this, SLOT( projectLoading( Project* ) ), Qt::DirectConnection );
+    m_tracksScene = new TracksScene( this );
 }
 
 Timeline::~Timeline()
@@ -78,9 +79,7 @@ Timeline::initialize()
     delete m_tracksControls;
     delete m_tracksRuler;
     delete m_tracksView;
-    delete m_tracksScene;
 
-    m_tracksScene = new TracksScene( this );
     m_tracksView = new TracksView( m_tracksScene, m_mainWorkflow, m_renderer, m_ui.tracksFrame );
     m_tracksView->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
     m_tracksView->scale(1, 1);



More information about the Vlmc-devel mailing list