Skip to content

Commit 5578466

Browse files
jvandenbroekgizmocuz
authored andcommitted
EventSystem fix update uservariable type (#1952)
1 parent a4a23dd commit 5578466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/SQLHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ bool CSQLHelper::OpenDatabase()
23362336
safe_query("UPDATE Hardware SET Mode3='%q', Mode5='' WHERE (ID=%s)", sd[1].c_str(), sd[0].c_str());
23372337
}
23382338
}
2339-
2339+
23402340
}
23412341
}
23422342
else if (bNewInstall)
@@ -7288,7 +7288,7 @@ bool CSQLHelper::SetUserVariable(const uint64_t idx, const std::string &varvalue
72887288
{
72897289
if (eventtrigger)
72907290
m_mainworker.m_eventsystem.SetEventTrigger(idx, m_mainworker.m_eventsystem.REASON_USERVARIABLE, 0);
7291-
m_mainworker.m_eventsystem.UpdateUserVariable(idx, "", szVarValue, 0, szLastUpdate);
7291+
m_mainworker.m_eventsystem.UpdateUserVariable(idx, "", szVarValue, -1, szLastUpdate);
72927292
}
72937293
return true;
72947294
}

0 commit comments

Comments
 (0)