Merge pull request #1579 from ThomasWilshaw/Fix#1577_DblClkHandTool

TimelineWidget: catch hand tool double click
This commit is contained in:
itsmattkc
2021-04-17 08:42:13 +10:00
committed by GitHub
@@ -807,6 +807,12 @@ void TimelineWidget::ViewMouseReleased(TimelineViewMouseEvent *event)
void TimelineWidget::ViewMouseDoubleClicked(TimelineViewMouseEvent *event)
{
// kHand tool will return nullptr
if (!GetActiveTool()) {
// Only kHand should return a nullptr
Q_ASSERT(Core::instance()->tool() == olive::Tool::kHand);
return;
}
if (GetConnectedNode()) {
GetActiveTool()->MouseDoubleClick(event);
UpdateViewports();