Skip to content

Commit

Permalink
luaPath
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Sep 12, 2023
1 parent 6b77421 commit 2d2c254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcUI/operationloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d2c254

Please sign in to comment.