keyframeview: ensure released signal is emitted at all times on mouse release

Fixes #2138
This commit is contained in:
itsmattkc
2023-02-28 17:19:12 -08:00
parent ec2ff82229
commit ee666d8862
+2 -1
View File
@@ -313,12 +313,13 @@ void KeyframeView::mouseReleaseEvent(QMouseEvent *event)
selection_manager_.DragStop(command); selection_manager_.DragStop(command);
KeyframeDragRelease(event, command); KeyframeDragRelease(event, command);
Core::instance()->undo_stack()->push(command); Core::instance()->undo_stack()->push(command);
emit Released();
} else if (selection_manager_.IsRubberBanding()) { } else if (selection_manager_.IsRubberBanding()) {
selection_manager_.RubberBandStop(); selection_manager_.RubberBandStop();
Redraw(); Redraw();
emit SelectionChanged(); emit SelectionChanged();
} }
emit Released();
} }
int BinarySearchFirstKeyframeAfterOrAt(const QVector<NodeKeyframe*> &keys, const rational &time) int BinarySearchFirstKeyframeAfterOrAt(const QVector<NodeKeyframe*> &keys, const rational &time)