TimelineWidget: catch hand tool double click

The hand tool does not inherit from TimelineTool (it is a special
program
wide tool) so tools_[olive::Tool::kHand] is a nullptr. Therefore when
ViewMouseDoubleClicked is called we check if the hand tool is
selected and
simply return if it is.

Fixes #1577
This commit is contained in:
Thomas Wilshaw
2021-04-15 20:17:29 +01:00
parent 6b7412aff6
commit 837ab00ec5
@@ -807,6 +807,10 @@ void TimelineWidget::ViewMouseReleased(TimelineViewMouseEvent *event)
void TimelineWidget::ViewMouseDoubleClicked(TimelineViewMouseEvent *event)
{
// kHand tool is handled differently to the other tools
if (Core::instance()->tool() == olive::Tool::kHand) {
return;
}
if (GetConnectedNode()) {
GetActiveTool()->MouseDoubleClick(event);
UpdateViewports();