Fix set audio reference incorrectly disabled on AV grouped clips

BUG: 421669
parent be349045
......@@ -2684,7 +2684,11 @@ void TimelineController::updateClipActions()
} else if (actionData == QLatin1Char('U')) {
enableAction = m_model->m_groups->isInGroup(item);
} else if (actionData == QLatin1Char('A')) {
enableAction = clip && clip->clipState() == PlaylistState::AudioOnly;
if (m_model->m_groups->isInGroup(item) && m_model->m_groups->getType(m_model->m_groups->getRootId(item)) == GroupType::AVSplit) {
enableAction = true;
} else {
enableAction = clip && clip->clipState() == PlaylistState::AudioOnly;
}
} else if (actionData == QLatin1Char('V')) {
enableAction = clip && clip->clipState() == PlaylistState::VideoOnly;
} else if (actionData == QLatin1Char('D')) {
......
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