Skip to content

Commit

Permalink
Deleting a variant proxy deletes original
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeAtHPI committed Jan 10, 2024
1 parent 4be7836 commit 554e14e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/Sandblocks-Smalltalk/SBVariantProxy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ SBVariantProxy >> updateOriginalWithOwnValues [
variantThatNeedsChanging ifNil: [self delete. ^ self].

original replaceBy: (original := self firstSubmorph copyBlock).
original isVariant ifFalse: [self delete. ^ self].

variantThatNeedsChanging replaceValuesFrom: original copyBlock.
self sandblockEditor markChanged: self containedMethod
]
Expand Down

0 comments on commit 554e14e

Please sign in to comment.