mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't crash on config settings with no key
* This can happen if the config setting is unrecognised but loaded from the config file anyway.
This commit is contained in:
@@ -333,7 +333,8 @@ protected:
|
||||
|
||||
if(o->FindChild("value"))
|
||||
{
|
||||
if(QString(o->FindChild("key")->AsString()).contains(m_KeyText, Qt::CaseInsensitive))
|
||||
if(o->FindChild("key") &&
|
||||
QString(o->FindChild("key")->AsString()).contains(m_KeyText, Qt::CaseInsensitive))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user