From 2d2c25450f134a4d22e651b793c21c31a875ab53 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Tue, 12 Sep 2023 01:57:44 -0400 Subject: [PATCH] luaPath --- lcUI/operationloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcUI/operationloader.cpp b/lcUI/operationloader.cpp index dae3cdab..d2da420a 100644 --- a/lcUI/operationloader.cpp +++ b/lcUI/operationloader.cpp @@ -19,13 +19,13 @@ const char* operationsLua = "/actions/operations.lua"; std::string findLuaFolder(std::string luaPath) { - if (QFileInfo{luaPath + operationsLua}.exists()) + if (QFileInfo{QString{luaPath.c_str()} + operationsLua}.exists()) return luaPath; luaPath = QDir{QCoreApplication::applicationDirPath()}.canonicalPath().toStdString(); #if (defined (LINUX) || defined (__linux__)) luaPath += "/../share/librecad/lcUILua/"; #endif - if (QFileInfo{luaPath + operationsLua}.exists()) + if (QFileInfo{QString{luaPath.c_str()} + operationsLua}.exists()) return luaPath; QDirIterator it(luaPath, QDirIterator::Subdirectories);