Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix crash on grouped composition move

parent b252df47
......@@ -70,7 +70,6 @@ AssetParameterModel::AssetParameterModel(Mlt::Properties *asset, const QDomEleme
}
}
}
// Parse the basic attributes of the parameter
QString name = currentParameter.attribute(QStringLiteral("name"));
QString type = currentParameter.attribute(QStringLiteral("type"));
......
......@@ -683,7 +683,7 @@ int TimelineModel::suggestClipMove(int clipId, int trackId, int position, int sn
// First pass, sort clips by track and keep only the first / last depending on move direction
for (int current_clipId : all_items) {
int clipTrack = getClipTrackId(current_clipId);
int clipTrack = getItemTrackId(current_clipId);
if (clipTrack == -1) {
continue;
}
......@@ -2138,7 +2138,7 @@ bool TimelineModel::requestCompositionMove(int compoId, int trackId, int composi
int old_trackId = getCompositionTrackId(compoId);
bool notifyViewOnly = false;
Fun update_model = []() { return true; };
if (old_trackId == trackId) {
if (updateView && old_trackId == trackId) {
// Move on same track, only send view update
updateView = false;
notifyViewOnly = 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