Skip to content

Commit

Permalink
timelineview: don't playheadpress if tool is kAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed May 21, 2021
1 parent e21d4ab commit a0f26fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/widget/timelinewidget/view/timelineview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a0f26fc

Please sign in to comment.