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:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user