From 46ed364fca93c1ba167cd39d44ba3a448149fa7a Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 3 Feb 2019 08:47:35 +1100 Subject: [PATCH] actually fixed #411 --- panels/timeline.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/panels/timeline.cpp b/panels/timeline.cpp index 3c12eff7a..d7f83b489 100644 --- a/panels/timeline.cpp +++ b/panels/timeline.cpp @@ -144,15 +144,14 @@ void ripple_clips(ComboAction* ca, Sequence *s, long point, long length, const Q void Timeline::toggle_show_all() { if (sequence != nullptr) { - - } - showing_all = !showing_all; - if (showing_all) { - old_zoom = zoom; - set_zoom_value(double(timeline_area->width() - 200) / double(sequence->getEndFrame())); - } else { - set_zoom_value(old_zoom); - } + showing_all = !showing_all; + if (showing_all) { + old_zoom = zoom; + set_zoom_value(double(timeline_area->width() - 200) / double(sequence->getEndFrame())); + } else { + set_zoom_value(old_zoom); + } + } } void Timeline::create_ghosts_from_media(Sequence* seq, long entry_point, QVector& media_list) {