mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 14:14:34 +02:00
fix: nullptr access (#3690)
This commit is contained in:
commit
da30904630
@ -54,7 +54,7 @@ SystemTheme::SystemTheme(const QString& styleName, const QPalette& defaultPalett
|
||||
m_colorPalette = defaultPalette;
|
||||
} else {
|
||||
auto style = QStyleFactory::create(styleName);
|
||||
m_colorPalette = style->standardPalette();
|
||||
m_colorPalette = style != nullptr ? style->standardPalette() : defaultPalette;
|
||||
delete style;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user