Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
2 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mclarekin
via email
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
introduced bug! this breaks flight rendering on the CLI. Same for keyframe animation.