From 97237a65c46ec81298497804976b185532544a13 Mon Sep 17 00:00:00 2001 From: Matt Buchwald Date: Mon, 29 Jul 2024 08:45:24 -0400 Subject: [PATCH] Remove duplicate function call, using local variable. --- src/ui/viewmodels/TriggerConditionViewModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/viewmodels/TriggerConditionViewModel.cpp b/src/ui/viewmodels/TriggerConditionViewModel.cpp index e51f5d17..611b84ef 100644 --- a/src/ui/viewmodels/TriggerConditionViewModel.cpp +++ b/src/ui/viewmodels/TriggerConditionViewModel.cpp @@ -583,7 +583,7 @@ void TriggerConditionViewModel::OnValueChanged(const BoolModelProperty::ChangeAr if (args.Property == HasTargetProperty) { const auto nTargetType = GetTargetType(); - SetValue(HasTargetSizeProperty, args.tNewValue && IsAddressType(GetTargetType())); + SetValue(HasTargetSizeProperty, args.tNewValue && IsAddressType(nTargetType)); SetValue(HasTargetValueProperty, args.tNewValue && !IsParameterlessType(nTargetType)); }