Commit db528d58 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Better error message in some cases of preview render failure

parent 7df0008b
Pipeline #271712 passed with stage
in 13 minutes and 43 seconds
......@@ -614,7 +614,7 @@ void PreviewManager::processEnded(int, QProcess::ExitStatus status)
const QString sceneList = m_cacheDir.absoluteFilePath(QStringLiteral("preview.mlt"));
QFile::remove(sceneList);
if (status == QProcess::QProcess::CrashExit) {
pCore->currentDoc()->previewProgress(-1);
emit previewRender(0, m_errorLog, -1);
if (workingPreview >= 0) {
const QString fileName = QStringLiteral("%1.%2").arg(workingPreview).arg(m_extension);
if (m_cacheDir.exists(fileName)) {
......
Supports Markdown
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