Permalink
Browse files
notification for keyframe/flight folder does not exist
when the user presses the button to render keyframe/flight an error notification will be shown, if the folder to store does not exist. This fixes issue #93
- Loading branch information...
Showing
with
30 additions
and 10 deletions.
| @@ -173,18 +173,28 @@ void cFlightAnimation::slotContinueRecording() | ||
| void cFlightAnimation::slotRenderFlight() | ||
| { | ||
| //get latest values of all parameters | ||
| mainInterface->SynchronizeInterface(params, fractalParams, qInterface::read); | ||
This comment has been minimized.Show comment
Hide comment
zebastian
Collaborator
|
||
| if (frames) | ||
| { | ||
| if (frames->GetNumberOfFrames() > 0) | ||
| { | ||
| RenderFlight(&gMainInterface->stopRequest); | ||
| } | ||
| else | ||
| if (frames->GetNumberOfFrames() == 0) | ||
| { | ||
| emit showErrorMessage(QObject::tr("No frames to render"), | ||
| cErrorMessage::errorMessage, | ||
| ui->centralwidget); | ||
| } | ||
| else if (!QDir(params->Get<QString>("anim_flight_dir")).exists()) | ||
| { | ||
| emit showErrorMessage( | ||
| QObject::tr("The folder %1 does not exist. Please specify a valid location.") | ||
| .arg(params->Get<QString>("anim_flight_dir")), | ||
| cErrorMessage::errorMessage, ui->centralwidget); | ||
| } | ||
| else | ||
| { | ||
| RenderFlight(&gMainInterface->stopRequest); | ||
| } | ||
| } | ||
| else | ||
introduced bug! this breaks flight rendering on the CLI. Same for keyframe animation.