forked from dupriezt/Chest
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from adri09070/9-remove-was-sent-to-nil-when-r…
…emoving-an-object-from-a-chest-with-the-tree-view-within-the-debugger fixing bugs in actions of the tree view
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Extension { #name : #SpTreeTablePresenter } | ||
|
||
{ #category : #'*Chest' } | ||
SpTreeTablePresenter >> parentOfSelected [ | ||
|
||
| parentPath | | ||
parentPath := self selection selectedPath. | ||
parentPath ifEmpty: [ ^ nil ]. | ||
parentPath := parentPath allButLast. | ||
^ self itemAtPath: parentPath ifAbsent: nil | ||
] |