Copy current icon theme name to the fallback on startup

This commit is contained in:
Chris Mayo
2024-07-25 19:21:25 +01:00
parent 969e5c2f3c
commit 53e613fe46

View File

@@ -178,6 +178,9 @@ void StartupProcess::setThemePaths()
QIcon::setThemeSearchPaths(searchPaths);
}
// KDE file dialog needs icons from the desktop theme
QIcon::setFallbackThemeName(QIcon::themeName());
std::string name = hTheme->GetASCII("Name");
if (name.empty()) {
QIcon::setThemeName(QLatin1String("FreeCAD-default"));