Skip to content

Commit

Permalink
Merge pull request #1489 from Ducasse/enh/BetterSelectDialog
Browse files Browse the repository at this point in the history
Make sure that the first item is selected when opening a  select dial…
  • Loading branch information
Ducasse committed Dec 11, 2023
2 parents 01ccf7c + f92245e commit 08b7e8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Spec2-Dialogs/SpSelectDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ SpSelectDialog >> items [
{ #category : 'api' }
SpSelectDialog >> items: aCollection [

list items: aCollection
list items: aCollection.
aCollection size > 1
ifTrue: [ list selectItem: aCollection first ]
]

{ #category : 'api' }
Expand Down

0 comments on commit 08b7e8d

Please sign in to comment.