timelineview: don't playheadpress if tool is kAdd

This commit is contained in:
itsmattkc
2021-05-21 10:47:05 +10:00
parent e21d4ab0d7
commit a0f26fcc7b
@@ -60,7 +60,7 @@ void TimelineView::mousePressEvent(QMouseEvent *event)
TimelineViewMouseEvent timeline_event = CreateMouseEvent(event);
if (HandPress(event)
|| (!GetItemAtScenePos(timeline_event.GetFrame(), timeline_event.GetTrack().index()) && PlayheadPress(event))) {
|| (!GetItemAtScenePos(timeline_event.GetFrame(), timeline_event.GetTrack().index()) && Core::instance()->tool() != Tool::kAdd && PlayheadPress(event))) {
// Let the parent handle this
return;
}