Skip to content
Snippets Groups Projects
Commit 77c31b75 authored by d.kilic's avatar d.kilic
Browse files

fix: Warning for looping, even when deactivated

Fixed occurence of warning "Looping and tracking can't be used together"
when looping isn't activated
parent ea230a04
No related branches found
No related tags found
1 merge request!65Resolve "Looping warning"
Pipeline #27202 passed
......@@ -414,13 +414,12 @@ void Player::playVideo(){
debout << "Warning: video unexpectedly finished." << std::endl;
}
}else{
if(mMainWindow->getControlWidget()->trackOnlineCalc->checkState() == Qt::Checked)
if( mLooping && mMainWindow->getControlWidget()->trackOnlineCalc->checkState() == Qt::Checked)
{
QMessageBox::warning(this, "Error: No tracking while looping", "Looping and tracking are incompatible. Please disable one first.");
mState = PlayerState::PAUSE;
break;
}
if(mLooping)
}else if(mLooping)
{
if(mState == PlayerState::FORWARD && mAnimation->getCurrentFrameNum() == mAnimation->getSourceOutFrameNum())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment