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

ClipHelper: Emit a signal when the contained clip is destroyed

parent 40c7f2a3
......@@ -34,6 +34,7 @@ ClipHelper::ClipHelper( Clip* clip, qint64 begin /*= -1*/, qint64 end /*= -1*/,
m_begin = clip->begin();
if ( end == -1 )
m_end = clip->end();
connect( clip, SIGNAL( destroyed() ), this, SLOT( clipDestroyed() ) );
}
void
......@@ -73,3 +74,11 @@ ClipHelper::setClipWorkflow( ClipWorkflow* cw )
{
m_clipWorkflow = cw;
}
void
ClipHelper::clipDestroyed()
{
emit destroyed( m_uuid );
//A clip helper is useless without a clip.
deleteLater();
}
......@@ -57,6 +57,9 @@ class ClipHelper : public Workflow::Helper
Clip* m_clip;
ClipWorkflow* m_clipWorkflow;
private slots:
void clipDestroyed();
signals:
void error();
};
......
......@@ -52,6 +52,7 @@ namespace Workflow
signals:
void lengthUpdated();
void destroyed( const QUuid &uuid );
};
}
......
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