Commit 72357fb8 authored by Vincent Pinon's avatar Vincent Pinon

fix valgrind warning

parent 34632959
......@@ -1103,7 +1103,7 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event)
m_selectionGroup->setProperty("locked_tracks", lockedTracks);
}
m_selectionMutex.unlock();
if (m_dragItem) {
if (m_dragItem && m_dragItem->type() == AVWidget) {
ClipItem *clip = static_cast<ClipItem*>(m_dragItem);
updateClipTypeActions(dragGroup == NULL ? clip : NULL);
m_pasteEffectsAction->setEnabled(m_copiedItems.count() == 1);
......
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