Hide warning about not available pdftops. Seek tool pdftops in app bundle on
mac os, near exe on Windows and in standard path on linux. --HG-- branch : release
This commit is contained in:
parent
7555c67c3e
commit
1f0ac82547
|
@ -571,7 +571,11 @@ QMap<QString, QString> TableWindow::InitFormates() const
|
|||
extByMessage[ tr("Wavefront OBJ (*.obj)") ] = ".obj";
|
||||
|
||||
QProcess proc;
|
||||
proc.start(PDFTOPS);
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_OSX)
|
||||
proc.start(qApp->applicationDirPath()+"/"+PDFTOPS); // Seek pdftops in app bundle or near valentin.exe
|
||||
#else
|
||||
proc.start(PDFTOPS); // Seek pdftops in standard path
|
||||
#endif
|
||||
if (proc.waitForFinished(15000))
|
||||
{
|
||||
extByMessage[ tr("PS files (*.ps)") ] = ".ps";
|
||||
|
@ -579,7 +583,7 @@ QMap<QString, QString> TableWindow::InitFormates() const
|
|||
}
|
||||
else
|
||||
{
|
||||
qWarning()<<PDFTOPS<<"error"<<proc.error()<<proc.errorString();
|
||||
qDebug()<<PDFTOPS<<"error"<<proc.error()<<proc.errorString();
|
||||
}
|
||||
return extByMessage;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user