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:
baldurk
2020-03-30 18:25:30 +01:00
parent 11801a0e32
commit 3ec60fcde1
+2 -1
View File
@@ -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;