reset style to the default instead of the first key (#6596)

This commit is contained in:
ebbit1q 2026-02-19 08:36:35 +01:00 committed by GitHub
parent a7bb5254a3
commit 6ab558dd58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -346,7 +346,7 @@ void ThemeManager::themeChangedSlot()
qApp->setStyle(QStyleFactory::create("Fusion"));
qApp->setPalette(createDarkGreenFusionPalette());
} else {
qApp->setStyle(QStyleFactory::create(QStyleFactory::keys().first()));
qApp->setStyle("");
}
if (dirPath.isEmpty()) {