Fixed render log not saving all lines.

This commit is contained in:
Leonardo Zide 2019-09-08 12:19:00 -07:00
parent 516ddcbf7e
commit c425b01ecb

View file

@ -213,9 +213,9 @@ void lcRenderDialog::Update()
#ifdef Q_OS_LINUX
QByteArray Output = mProcess->readAllStandardOutput();
mImage = QImage::fromData(Output);
ShowResult();
#endif
ShowResult();
CloseProcess();
}
#endif
@ -275,9 +275,6 @@ void lcRenderDialog::Update()
ui->RenderProgress->setValue(int(Header->PixelsRead));
ui->preview->setPixmap(QPixmap::fromImage(mImage.scaled(LC_POVRAY_PREVIEW_WIDTH, LC_POVRAY_PREVIEW_HEIGHT, Qt::KeepAspectRatio, Qt::SmoothTransformation)));
if (PixelsWritten == Width * Height)
ShowResult();
#endif
}
@ -290,12 +287,12 @@ void lcRenderDialog::ShowResult()
if (Error)
{
WriteStdLog(Error);
QMessageBox error;
error.setWindowTitle(tr("Error"));
error.setIcon(QMessageBox::Critical);
error.setText(tr("An error occurred while rendering. Check details or try again."));
error.setDetailedText(mStdErrList.join(""));
error.exec();
QMessageBox MessageBox;
MessageBox.setWindowTitle(tr("Error"));
MessageBox.setIcon(QMessageBox::Information);
MessageBox.setText(tr("An error occurred while rendering. Check details or try again."));
MessageBox.setDetailedText(mStdErrList.join(QString()));
MessageBox.exec();
return;
}