forked from mirror/openmw-tes3mp
Fix crash when user preference is missing.
This commit is contained in:
parent
e29d9bcc8e
commit
71f3b7ed4f
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ void CSMTools::ScriptCheckStage::perform (int stage, CSMDoc::Messages& messages)
|
|||
|
||||
void CSMTools::ScriptCheckStage::updateUserSetting (const QString& name, const QStringList& value)
|
||||
{
|
||||
if (name=="script-editor/warnings")
|
||||
if (name=="script-editor/warnings" && !value.isEmpty())
|
||||
{
|
||||
if (value.at (0)=="Ignore")
|
||||
mWarningMode = Mode_Ignore;
|
||||
|
|
Loading…
Reference in a new issue