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

Commit b9b89940 authored by Nicolas Carion's avatar Nicolas Carion

[Timeline2][Model] Correctly create/delete track's tractor

parent 2d91b407
......@@ -32,6 +32,14 @@ TrackModel::TrackModel(std::weak_ptr<TimelineModel> parent, int id) :
m_parent(parent)
, m_id(id == -1 ? TimelineModel::getNextId() : id)
{
m_track.insert_track(m_playlists[0], 0);
m_track.insert_track(m_playlists[1], 1);
}
TrackModel::~TrackModel()
{
m_track.remove_track(1);
m_track.remove_track(0);
}
int TrackModel::construct(std::weak_ptr<TimelineModel> parent, int id, int pos)
......
......@@ -41,6 +41,7 @@ class TrackModel
public:
TrackModel() = delete;
~TrackModel();
friend class TimelineModel;
friend class TimelineItemModel;
......
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