Skip to content

Commit

Permalink
Merge pull request pharo-spec#798 from pavel-krivanek/797-menu-items-…
Browse files Browse the repository at this point in the history
…do-not-inherit-application

797-menu-items-do-not-inherit-application
  • Loading branch information
jecisc committed Oct 8, 2019
2 parents 9fa1464 + f492451 commit 12fe53e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpMenuGroupPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SpMenuGroupPresenter >> add: aName target: targetObject selector: aSelector [
SpMenuGroupPresenter >> addItem: aBlock [
| item |

item := SpMenuItemPresenter new.
item := self instantiate: SpMenuItemPresenter.
aBlock value: item.
self addMenuItem: item
]
Expand Down
4 changes: 2 additions & 2 deletions src/Spec2-Core/SpMenuPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SpMenuPresenter >> addGroup: aBlock [
In case of a single group menu you can use #addItem: directly."

| group |
group := SpMenuGroupPresenter new.
group := self instantiate: SpMenuGroupPresenter.
aBlock value: group.
self addMenuGroup: group
]
Expand Down Expand Up @@ -118,7 +118,7 @@ SpMenuPresenter >> canTakeKeyboardFocus [
{ #category : #accessing }
SpMenuPresenter >> defaultGroup [
^ defaultGroup
ifNil: [ defaultGroup := SpMenuGroupPresenter new.
ifNil: [ defaultGroup := self instantiate: SpMenuGroupPresenter.
self addMenuGroup: defaultGroup.
defaultGroup ]
]
Expand Down

0 comments on commit 12fe53e

Please sign in to comment.