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 ff168e345f
commit 598fa20b03

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"));