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

Clear selection when clicking empty space in timeline

parent de33f464
......@@ -502,6 +502,7 @@ Rectangle {
spacerFrame = controller.getClipPosition(spacerGroup)
}
} else if (root.activeTool === 0 || mouse.y <= ruler.height) {
timeline.selection = []
timeline.seekPosition = (scrollView.flickableItem.contentX + mouse.x) / timeline.scaleFactor
timeline.position = timeline.seekPosition
} else if (root.activeTool === 1) {
......
......@@ -189,15 +189,17 @@ void TimelineController::setSelection(const QList<int> &newSelection, int trackI
m_selection.selectedClips = newSelection;
m_selection.selectedTrack = trackIndex;
m_selection.isMultitrackSelected = isMultitrack;
std::unordered_set<int> ids;
ids.insert(m_selection.selectedClips.cbegin(), m_selection.selectedClips.cend());
m_model->requestClipsGroup(ids, true, true);
emit selectionChanged();
if (!m_selection.selectedClips.isEmpty())
if (!m_selection.selectedClips.isEmpty()) {
std::unordered_set<int> ids;
ids.insert(m_selection.selectedClips.cbegin(), m_selection.selectedClips.cend());
m_model->requestClipsGroup(ids, true, true);
emitSelectedFromSelection();
else
}
else {
emit selected(nullptr);
}
emit selectionChanged();
}
}
......
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