From 415996631a707370a6158ef2eb2081ce8708eee2 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 13 Oct 2016 01:41:43 +0000 Subject: [PATCH] Add PATH for launch DXFtoQET plugin on QET element editor file menu for macOSX platform git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4739 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/qetelementeditor.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index 131babb6b..f85b4750c 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -1046,9 +1046,16 @@ void QETElementEditor::slot_openDxf (){ #ifdef Q_OS_WIN32 QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe"); -#else +#endif + +#ifdef Q_OS_MAC +QString program = (QDir::homePath() + "/.qet/DXFtoQET.app"); +#endif + +#ifdef Q_OS_LINUX QString program = (QDir::homePath() + "/.qet/DXFtoQET"); #endif + QStringList arguments; QProcess *DXF = new QProcess(qApp); DXF->start(program,arguments);