diff --git a/sources/dxf/dxftoelmt.cpp b/sources/dxf/dxftoelmt.cpp index 85ea2534f..bd21f2c54 100644 --- a/sources/dxf/dxftoelmt.cpp +++ b/sources/dxf/dxftoelmt.cpp @@ -17,11 +17,11 @@ */ #include "dxftoelmt.h" #include "../ui/thirdpartybinaryinstalldialog.h" +#include "../qetapp.h" #include #include #include -#include /** * @brief dxftoElmt @@ -71,7 +71,7 @@ QByteArray dxfToElmt(const QString &file_path) QString dxf2ElmtDirPath() { - return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/binary"; + return QETApp::dataDir() + "/binary"; } /** diff --git a/sources/qet_elementscaler/qet_elementscaler.cpp b/sources/qet_elementscaler/qet_elementscaler.cpp index b7e362d1e..b4ad83150 100644 --- a/sources/qet_elementscaler/qet_elementscaler.cpp +++ b/sources/qet_elementscaler/qet_elementscaler.cpp @@ -17,12 +17,12 @@ */ #include "qet_elementscaler.h" #include "../ui/thirdpartybinaryinstalldialog.h" +#include "../qetapp.h" #include #include #include #include -#include /** * @brief QET_ElementScaler @@ -113,7 +113,7 @@ QByteArray ElementScaler(const QString &file_path, QWidget *parent) QString ElementScalerDirPath() { - return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/binary"; + return QETApp::dataDir() + "/binary"; } /**