Fix Calligra (absence) detection

This commit is contained in:
Anton Thomasson 2021-03-20 14:37:48 +01:00
parent 9bf1a11cb5
commit 45b3d11655

View file

@ -5,6 +5,7 @@
ConvertChecker::ConvertChecker()
{
_pdf = false;
_calligra = false;
QProcess* pdftoppm = new QProcess(this);
pdftoppm->setProgram("pdftoppm");
pdftoppm->setArguments({"-h"});
@ -25,7 +26,7 @@ ConvertChecker::ConvertChecker()
if(calligraconverter->waitForFinished(2000))
{
if(calligraconverter->exitStatus() == QProcess::NormalExit && pdftoppm->exitCode() == 0)
if(calligraconverter->exitStatus() == QProcess::NormalExit && calligraconverter->exitCode() == 0)
{
_calligra = true;
}