diff options
Diffstat (limited to 'qt/build_style/build_skins.cpp')
-rw-r--r-- | qt/build_style/build_skins.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt/build_style/build_skins.cpp b/qt/build_style/build_skins.cpp index 8f1fcad0be..82f713b572 100644 --- a/qt/build_style/build_skins.cpp +++ b/qt/build_style/build_skins.cpp @@ -52,7 +52,11 @@ inline bool SkinCoorrectColor(SkinType s) { return std::get<2>(g_skinInfo[s]); } QString GetSkinGeneratorPath() { - return GetExternalPath("skin_generator", "skin_generator.app/Contents/MacOS", ""); + QString path = GetExternalPath("skin_generator", "skin_generator.app/Contents/MacOS", ""); + if (path.isEmpty()) + path = GetExternalPath("skin_generator_tool", "skin_generator_tool.app/Contents/MacOS", ""); + ASSERT(QFileInfo::exists(path), (path.toStdString())); + return path; } class RAII |