Commit 3d188d57 authored by Nicolas Carion's avatar Nicolas Carion

apply the same fixes for requestClipInsertion

parent cc59d0ca
......@@ -611,7 +611,11 @@ bool TimelineModel::requestClipInsertion(const QString &binClipId, int trackId,
bool res = false;
ClipType type = ClipType::Unknown;
if (KdenliveSettings::splitaudio()) {
std::shared_ptr<ProjectClip> master = pCore->projectItemModel()->getClipByBinID(binClipId.section(QLatin1Char('/'), 0, 0));
QString bid = binClipId.section(QLatin1Char('/'), 0, 0);
if (!pCore->projectItemModel()->hasClip(bid)) {
return false;
}
std::shared_ptr<ProjectClip> master = pCore->projectItemModel()->getClipByBinID(bid);
type = master->clipType();
}
if (type == ClipType::AV) {
......
......@@ -977,7 +977,7 @@ TEST_CASE("Undo and Redo", "[ClipModel]")
};
state1();
QString binId4 = binId3 + "#1#10";
QString binId4 = binId3 + "/1/10";
int cid4;
REQUIRE(timeline->requestClipInsertion(binId4, tid2, 17, cid4, true));
......
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