Commit a2543cec authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Fixing a crash when rendering after canceling the first render.

parent 874326ee
......@@ -437,9 +437,6 @@ void MainWindow::on_actionRender_triggered()
else
{
m_renderer->killRenderer();
if ( m_fileRenderer )
delete m_fileRenderer;
m_fileRenderer = new WorkflowFileRenderer();
//Setup dialog box for querying render parameters.
RendererSettings *settings = new RendererSettings;
if ( settings->exec() == QDialog::Rejected )
......@@ -455,6 +452,9 @@ void MainWindow::on_actionRender_triggered()
quint32 abitrate = settings->audioBitrate();
delete settings;
if ( m_fileRenderer )
delete m_fileRenderer;
m_fileRenderer = new WorkflowFileRenderer();
WorkflowFileRendererDialog *dialog = new WorkflowFileRendererDialog( m_fileRenderer, width, height );
dialog->setModal( true );
dialog->setOutputFileName( outputFileName );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment