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 timeline guide losing category on move. Fixes #142

parent 2b0d585f
Pipeline #2467 passed with stage
in 15 minutes and 46 seconds
......@@ -146,10 +146,13 @@ bool MarkerListModel::editMarker(GenTime oldPos, GenTime pos, QString comment, i
QWriteLocker locker(&m_lock);
Q_ASSERT(m_markerList.count(oldPos) > 0);
QString oldComment = m_markerList[oldPos].first;
int oldType = m_markerList[oldPos].second;
if (comment.isEmpty()) {
comment = oldComment;
}
int oldType = m_markerList[oldPos].second;
if (type == -1) {
type = oldType;
}
if (oldPos == pos && oldComment == comment && oldType == type) return true;
Fun undo = []() { return true; };
Fun redo = []() { return 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