Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Fix crash selecting an item after project opening

parent 321f9dac
......@@ -77,6 +77,8 @@ void TimelineController::setModel(std::shared_ptr<TimelineItemModel> model)
m_zone = QPoint(-1, -1);
m_timelinePreview = nullptr;
m_model = std::move(model);
m_selection.selectedTrack = -1;
connect(m_model.get(), &TimelineItemModel::requestClearAssetView, [&](int id) { pCore->clearAssetPanel(id); });
connect(m_model.get(), &TimelineItemModel::requestMonitorRefresh, [&]() { pCore->requestMonitorRefresh(); });
connect(m_model.get(), &TimelineModel::invalidateZone, this, &TimelineController::invalidateZone, Qt::DirectConnection);
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