|
|
@ -152,12 +152,12 @@ public function SelectTrader(ETrader newSelection) |
|
|
|
if (newSelection != none) |
|
|
|
if (newSelection != none) |
|
|
|
{ |
|
|
|
{ |
|
|
|
lastSelectedTrader = ETrader(newSelection.Copy()); |
|
|
|
lastSelectedTrader = ETrader(newSelection.Copy()); |
|
|
|
traderChanged = lastSelectedTrader.SameAs(oldSelection); |
|
|
|
traderChanged = !lastSelectedTrader.SameAs(oldSelection); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
lastSelectedTrader = none; |
|
|
|
lastSelectedTrader = none; |
|
|
|
traderChanged = (oldSelection == none); |
|
|
|
traderChanged = (oldSelection != none); |
|
|
|
} |
|
|
|
} |
|
|
|
if (traderChanged) { |
|
|
|
if (traderChanged) { |
|
|
|
onTraderSelectSignal.Emit(oldSelection, newSelection); |
|
|
|
onTraderSelectSignal.Emit(oldSelection, newSelection); |
|
|
|