| 406 | } |
| 407 | |
| 408 | void PlaybackController::selectionPropertiesChanged(bool redraw) |
| 409 | { |
| 410 | if (this->controlsEnabled) |
| 411 | this->updateFrameRange(); |
| 412 | |
| 413 | // Check if the current frame is outside of the (new) allowed range |
| 414 | bool updated = false; |
| 415 | if (this->currentFrameIdx > this->ui.frameSlider->maximum()) |
| 416 | updated = this->setCurrentFrameAndUpdate(this->ui.frameSlider->maximum()); |
| 417 | else if (this->currentFrameIdx < this->ui.frameSlider->minimum()) |
| 418 | updated = this->setCurrentFrameAndUpdate(this->ui.frameSlider->minimum()); |
| 419 | |
| 420 | if (redraw && !updated) |
| 421 | { |
| 422 | this->splitViewPrimary->update(false, true); |
| 423 | this->splitViewSeparate->update(false, true); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | void PlaybackController::updateSettings() |
| 428 | { |
nothing calls this directly
no test coverage detected