SmartPlaylistWizard: Apply dark mode workaround for all styles except vista

Fixes #1639
This commit is contained in:
Jonas Kvinge
2025-01-07 22:04:28 +01:00
parent 72447fecfb
commit 038e679000

View File

@@ -64,7 +64,8 @@ SmartPlaylistWizard::SmartPlaylistWizard(const SharedPtr<Player> player,
setWizardStyle(QWizard::ClassicStyle);
#endif
#ifdef Q_OS_WIN32
if (QApplication::style() && QApplication::style()->objectName() == u"fusion"_s) {
// Workaround QTBUG-123853
if (QApplication::style() && QApplication::style()->objectName() != u"windowsvista"_s) {
setWizardStyle(QWizard::ClassicStyle);
}
#endif