Merge pull request #1579 from ThomasWilshaw/Fix#1577_DblClkHandTool
TimelineWidget: catch hand tool double click
This commit is contained in:
@@ -807,6 +807,12 @@ void TimelineWidget::ViewMouseReleased(TimelineViewMouseEvent *event)
|
|||||||
|
|
||||||
void TimelineWidget::ViewMouseDoubleClicked(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()) {
|
if (GetConnectedNode()) {
|
||||||
GetActiveTool()->MouseDoubleClick(event);
|
GetActiveTool()->MouseDoubleClick(event);
|
||||||
UpdateViewports();
|
UpdateViewports();
|
||||||
|
|||||||
Reference in New Issue
Block a user