Skip to content

Commit

Permalink
Improved removign dependent models
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 16, 2024
1 parent 00013d9 commit 714a80a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions repository/OpenPonk-Core/OPController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ OPController >> removeControllerAndModel [

{ #category : 'destruction' }
OPController >> removeDependentConrollersAndModels [
self dependentControllers
do: [ :each |
self diagramController controllers
detect: [ :ctrl | ctrl model = each model ]
ifFound: #removeControllerAndModel ]

self dependentControllers do: [ :each |
self diagramController
controllerForModel: each model
ifFound: [ :found | found removeControllerAndModel ] ]
]

{ #category : 'destruction' }
Expand Down

0 comments on commit 714a80a

Please sign in to comment.