Commit f049619c authored by Vincent Pinon's avatar Vincent Pinon

Fix OTIO error display

parent baa3c0de
Pipeline #34316 failed with stage
in 62 minutes and 37 seconds
......@@ -103,8 +103,8 @@ void OtioConvertions::slotExportProject()
convert.waitForFinished();
tmp.remove();
if(convert.exitStatus() != QProcess::NormalExit || convert.exitCode() != 0) {
KMessageBox::error(pCore->window(), i18n("Project conversion failed:\n%1"),
QString(convert.readAllStandardError()));
KMessageBox::error(pCore->window(), i18n("Project conversion failed:\n%1",
QString(convert.readAllStandardError())));
return;
}
pCore->displayMessage(i18n("Project conversion complete"), InformationMessage);
......@@ -136,8 +136,8 @@ void OtioConvertions::slotImportProject()
convert.start(QStringLiteral("otioconvert"), {"-i", importFile, "-o", importedFile});
convert.waitForFinished();
if(convert.exitStatus() != QProcess::NormalExit || convert.exitCode() != 0 || !QFile::exists(importedFile)) {
KMessageBox::error(pCore->window(), i18n("Project conversion failed:\n%1"),
QString(convert.readAllStandardError()));
KMessageBox::error(pCore->window(), i18n("Project conversion failed:\n%1",
QString(convert.readAllStandardError())));
return;
}
pCore->displayMessage(i18n("Project conversion complete"), InformationMessage);
......
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