ensure playback controls always shows a time when a timebase is set

Previously the playback controls would only appear after the first time they
updated. Now they're shown as soon as the viewer is set to a node.
This commit is contained in:
itsmattkc
2019-12-16 18:03:18 +11:00
parent cb5a468b4a
commit 23159025a4
+3
View File
@@ -90,6 +90,9 @@ void ViewerWidget::SetTimebase(const rational &r)
ruler_->SetTimebase(r);
controls_->SetTimebase(r);
controls_->SetTime(ruler_->GetTime());
LengthChangedSlot(viewer_node_ ? viewer_node_->Length() : 0);
playback_timer_.setInterval(qFloor(r.toDouble()));
}