Commit 14377458 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix regression crash editing marker comment

parent 4ef24fb7
...@@ -287,7 +287,7 @@ Fun MarkerListModel::changeComment_lambda(GenTime pos, const QString &comment, i ...@@ -287,7 +287,7 @@ Fun MarkerListModel::changeComment_lambda(GenTime pos, const QString &comment, i
auto clipId = m_clipId; auto clipId = m_clipId;
return [guide, clipId, pos, comment, type]() { return [guide, clipId, pos, comment, type]() {
auto model = getModel(guide, clipId); auto model = getModel(guide, clipId);
Q_ASSERT(model->hasMarker(pos) == false); Q_ASSERT(model->hasMarker(pos));
int mid = model->getIdFromPos(pos); int mid = model->getIdFromPos(pos);
int row = model->getRowfromId(mid); int row = model->getRowfromId(mid);
model->m_markerList[mid].setComment(comment); model->m_markerList[mid].setComment(comment);
......
Supports Markdown
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