Commit 2fd18c9d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TrackWorkflow: Fixing clip deletion

parent 19378676
......@@ -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 );
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment