From 1f0ac825479350a813fa441717319b31cae16adc Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Mar 2015 16:49:51 +0200 Subject: [PATCH] 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 --- src/app/tablewindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/tablewindow.cpp b/src/app/tablewindow.cpp index 7fc17c0cb..8d0d2d6ed 100644 --- a/src/app/tablewindow.cpp +++ b/src/app/tablewindow.cpp @@ -571,7 +571,11 @@ QMap 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 TableWindow::InitFormates() const } else { - qWarning()<