Fixed issue #594. Broken export on Mac.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-12-10 18:47:33 +02:00
parent 9b679d7c3e
commit 0b407792d7
2 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,9 @@
- [#582] Issue with standard path to shared data on Linux.
- [#595] GapWidth affecting to the margins.
# Version 0.4.6
- [#594] Broken export on Mac.
# Version 0.4.5 October 15, 2016
- [#435] Valentina doesn't change the cursor.
- [#473] Tape 'Preferences' cause loss of focus.

View File

@ -739,7 +739,13 @@ void MainWindowsNoGUI::PdfToPs(const QStringList &params) const
QApplication::setOverrideCursor(Qt::WaitCursor);
#endif
QProcess proc;
#if defined(Q_OS_MAC)
// Fix issue #594. Broken export on Mac.
proc.setWorkingDirectory(qApp->applicationDirPath());
proc.start(QLatin1String("./") + PDFTOPS, params);
#else
proc.start(PDFTOPS, params);
#endif
if (proc.waitForStarted(15000))
{
proc.waitForFinished(15000);