From 0b407792d7bba30c8102abe5d7d63330452347d6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 10 Dec 2016 18:47:33 +0200 Subject: [PATCH] Fixed issue #594. Broken export on Mac. --HG-- branch : develop --- ChangeLog.txt | 3 +++ src/app/valentina/mainwindowsnogui.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 8f27acdbe..8e466e2c1 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 2a44100e6..8bcdbe851 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -739,7 +739,13 @@ void MainWindowsNoGUI::PdfToPs(const QStringList ¶ms) 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);