Skip to content

Commit bcff79f

Browse files
Fixing bug that made it so the protocol was added even if the user cancelled the creation of it.
This change was proposed in #1082 by Jesisc, applying it here to avoid conflicts.
1 parent 8a40217 commit bcff79f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/NewTools-Core/StProtocolNameChooserPresenter.class.st

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ StProtocolNameChooserPresenter class >> requestProtocolNameConfiguring: aBlock [
6363
presenter selectProtocolName.
6464
dialog open.
6565

66+
dialog cancelled ifTrue: [ CmCommandAborted signal ].
6667
protocolName := presenter selectedProtocolName ifNil: [ CmCommandAborted signal ].
6768
(protocolName beginsWith: '*') ifTrue: [
6869
UIManager default inform: 'Star is forbidden for protocol name since this is used for method extensions.'.

0 commit comments

Comments
 (0)