Commit b28d3f39 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Emit lengthUpdated from appropriate place

parent 38f16fbc
......@@ -111,6 +111,7 @@ void Clip::computeLength()
qint64 nbMs = (qint64)( ( m_end - m_begin ) * (float)m_parent->getLength() );
m_lengthSeconds = nbMs / 1000;
m_length = (nbMs / 1000) * fps;
emit lengthUpdated();
}
else
{
......@@ -183,7 +184,6 @@ Clip* Clip::split( float newEnd )
Clip* newClip = new Clip( this, newEnd, m_end );
m_end = newEnd;
computeLength();
emit lengthUpdated();
return newClip;
}
......
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