Merge PR #465: Fix action copy operator

pull/470/merge
Jenkins nymea 2021-10-04 12:10:44 +02:00
commit eaab3032a7
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,8 @@ Action::Action(const ActionTypeId &actionTypeId, const ThingId &thingId, Trigger
Action::Action(const Action &other):
m_actionTypeId(other.actionTypeId()),
m_thingId(other.thingId()),
m_params(other.params())
m_params(other.params()),
m_triggeredBy(other.triggeredBy())
{
}
@ -147,4 +148,6 @@ void Action::operator =(const Action &other)
{
m_actionTypeId = other.actionTypeId();
m_params = other.params();
m_thingId = other.thingId();
m_triggeredBy = other.triggeredBy();
}