Commit 726682b1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

TracksView: Fixing signal connection.

parent 69d954db
......@@ -132,11 +132,11 @@ TracksView::addTrack( Workflow::TrackType type )
m_scene->invalidate(); // Redraw the background
//Clips part:
connect( track->trackWorkflow(), SIGNAL( clipAdded( TrackWorkflow*, Workflow::Helper*, qint64 ) ),
this, SLOT( addItem( TrackWorkflow*, Workflow::Helper*, qint64 ) ), Qt::QueuedConnection );
this, SLOT( addItem( TrackWorkflow*, Workflow::Helper*, qint64 ) ) );
connect( track->trackWorkflow(), SIGNAL( clipRemoved( TrackWorkflow*, const QUuid& ) ),
this, SLOT( removeItem( TrackWorkflow*, const QUuid& ) ), Qt::QueuedConnection );
this, SLOT( removeItem( TrackWorkflow*, const QUuid& ) ) );
connect( track->trackWorkflow(), SIGNAL( clipMoved( TrackWorkflow*, const QUuid&, qint64 ) ),
this, SLOT( moveItem( TrackWorkflow*, const QUuid&, qint64 ) ), Qt::QueuedConnection );
this, SLOT( moveItem( TrackWorkflow*, const QUuid&, qint64 ) ) );
//Effect part:
connect( track->trackWorkflow(), SIGNAL( effectAdded( TrackWorkflow*, Workflow::Helper*, qint64 ) ),
this, SLOT(addItem( TrackWorkflow*, Workflow::Helper*, qint64 ) ), Qt::QueuedConnection );
......
......@@ -34,6 +34,10 @@ Helper::Helper( qint64 begin /*= 0*/, qint64 end /*= -1*/, const QString &uuid/*
m_uuid = uuid;
}
Helper::~Helper()
{
}
qint64
Helper::begin() const
{
......
......@@ -35,6 +35,7 @@ namespace Workflow
protected: //This class is not meant to be used by itself.
Helper( qint64 begin = 0, qint64 end = -1, const QString &uuid = QString() );
~Helper();
public:
virtual const QUuid& uuid() const;
......
......@@ -417,7 +417,7 @@ TrackWorkflow::clipDestroyed( const QUuid& id )
computeLength();
cw->disconnect();
cw->getClipHelper()->disconnect( this );
emit clipRemoved( this, cw->getClipHelper()->uuid() );
emit clipRemoved( this, id );
cw->deleteLater();
return ;
}
......
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