Fix Calligra (absence) detection
This commit is contained in:
parent
9bf1a11cb5
commit
45b3d11655
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue