mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
Fix crash in Rule::apply (#4157)
This commit is contained in:
commit
7390bfcaff
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ QJsonObject Rule::toJson()
|
|||
|
||||
Rule::Action Rule::apply(const RuntimeContext& runtimeContext)
|
||||
{
|
||||
if (!runtimeContext.classifierMatches(m_os->name))
|
||||
if (m_os.has_value() && !runtimeContext.classifierMatches(m_os->name))
|
||||
return Defer;
|
||||
|
||||
return m_action;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue