Skip to content

Commit

Permalink
Merge pull request #22 from pharo-spec/revert-15-9-remove-was-sent-to…
Browse files Browse the repository at this point in the history
…-nil-when-removing-an-object-from-a-chest-with-the-tree-view-within-the-debugger

Revert "fixing bugs in actions of the tree view"
  • Loading branch information
StevenCostiou authored Jul 31, 2023
2 parents c6dd43f + 636478b commit 585de05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
7 changes: 3 additions & 4 deletions src/Chest/ChestTableWithContentPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -722,15 +722,14 @@ ChestTableWithContentPresenter >> removeAllChests [
{ #category : #removing }
ChestTableWithContentPresenter >> removeAllItemsFromSelectedChest [

| items chest |
| items |
self flag: 'to do with polymorphism'.

items := activePresenter == chestWithContentTreeTable
ifTrue: [
chestWithContentTreeTable childrenFor: self selectedChest ]
ifFalse: [ chestContentsTable items ].
chest := self selectedChest.
items do: [ :assoc | chest remove: assoc value ]
items do: [ :assoc | self selectedChest remove: assoc value ]
]

{ #category : #removing }
Expand Down Expand Up @@ -830,7 +829,7 @@ ChestTableWithContentPresenter >> selectedChest [
activePresenter == chestWithContentTreeTable ]) ifTrue: [
^ chestWithContentTreeTable selectedItem isChest
ifTrue: [ chestWithContentTreeTable selectedItem ]
ifFalse: [ chestWithContentTreeTable parentOfSelected ] ].
ifFalse: [ nil ] ].
^ chestsTable selection selectedItem
]

Expand Down
11 changes: 0 additions & 11 deletions src/Chest/SpTreeTablePresenter.extension.st

This file was deleted.

0 comments on commit 585de05

Please sign in to comment.