Use Application::getExecutableName() instead of Config()["ExeName"]

This commit is contained in:
wmayer
2025-05-10 17:05:11 +02:00
committed by Ladislav Michl
parent 4f116d8de3
commit cda2b8cbdb
8 changed files with 17 additions and 18 deletions

View File

@@ -1320,7 +1320,7 @@ void Application::addImportType(const char* filter, const char* moduleName)
// Due to branding stuff replace "FreeCAD" with the branded application name
if (strncmp(filter, "FreeCAD", 7) == 0) {
std::string AppName = Config()["ExeName"];
std::string AppName = getExecutableName();
AppName += item.filter.substr(7);
item.filter = std::move(AppName);
// put to the front of the array
@@ -1436,7 +1436,7 @@ void Application::addExportType(const char* filter, const char* moduleName)
// Due to branding stuff replace "FreeCAD" with the branded application name
if (strncmp(filter, "FreeCAD", 7) == 0) {
std::string AppName = Config()["ExeName"];
std::string AppName = getExecutableName();
AppName += item.filter.substr(7);
item.filter = std::move(AppName);
// put to the front of the array