keyframeview: ensure released signal is emitted at all times on mouse release
Fixes #2138
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user