fixed splitting bug when linked pair were selected

This commit is contained in:
itsmattkc
2018-07-01 04:08:40 +01:00
parent 2b535c4513
commit ab70f04617
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -242,7 +242,9 @@ void TimelineWidget::mousePressEvent(QMouseEvent *event) {
{
if (clip_index >= 0) {
Clip* clip = sequence->get_clip(clip_index);
if (clip != NULL) panel_timeline->split_clip_and_relink(clip, panel_timeline->drag_frame_start, !(event->modifiers() & Qt::AltModifier));
if (clip != NULL) {
panel_timeline->split_clip_and_relink(clip, panel_timeline->drag_frame_start, !(event->modifiers() & Qt::AltModifier));
}
}
panel_timeline->splitting = true;
panel_timeline->redraw_all_clips(true);