[vlmc-devel] commit: TrackWorkflow: Fixing clip deletion ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Mon Oct 4 21:26:07 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct  4 21:25:57 2010 +0200| [2fd18c9d4e48d03496f2e056fc5b180a3820c16a] | committer: Hugo Beauzée-Luyssen 

TrackWorkflow: Fixing clip deletion

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

 src/Commands/Commands.cpp      |    1 +
 src/Workflow/TrackWorkflow.cpp |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Commands/Commands.cpp b/src/Commands/Commands.cpp
index dfec8dc..06792d6 100644
--- a/src/Commands/Commands.cpp
+++ b/src/Commands/Commands.cpp
@@ -121,6 +121,7 @@ void Commands::Clip::Remove::redo()
 {
     m_trackWorkflow->removeClip( m_clipHelper->uuid() );
 }
+
 void Commands::Clip::Remove::undo()
 {
     m_trackWorkflow->addClip( m_clipHelper, m_pos );
diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index 15af00b..88550a5 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -415,7 +415,7 @@ Clip*       TrackWorkflow::removeClip( const QUuid& id )
             computeLength();
             cw->disconnect();
             emit clipRemoved( this, cw->getClipHelper()->uuid() );
-            delete cw;
+            cw->deleteLater();
             return clip;
         }
         ++it;



More information about the Vlmc-devel mailing list