timelinewidget: Catch any nullptr, not just kHand

This commit is contained in:
Thomas Wilshaw
2021-04-16 20:27:44 +01:00
parent 837ab00ec5
commit 1b4fd56803
+4 -2
View File
@@ -807,8 +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) {
// kHand tool will return nullptr
if (!GetActiveTool()) {
// Only kHand should return a nullptr
Q_ASSERT(Core::instance()->tool() == olive::Tool::kHand);
return;
}
if (GetConnectedNode()) {