Skip to content

Commit d122a47

Browse files
committed
BlEventSimulator: Guard with isOpened instead of hasHostSpace
1 parent 199413a commit d122a47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bloc-Simulation/BlEventSimulator.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ BlEventSimulator >> events: aCollectionOfEvents [
210210
modifiers isEmpty ifFalse: [
211211
anEvent modifiers: modifiers copy ] ] ].
212212

213-
aSpace hasHostSpace ifFalse: [
213+
aSpace isOpened ifFalse: [
214214
aSpace settle.
215-
aSpace hasHostSpace ifFalse: [
215+
aSpace isOpened ifFalse: [
216216
self error: 'You can''t simulate events if you didn''t add the element to a space and sent #show to it.' ] ].
217217

218218
aCollectionOfEvents do: [ :anEvent |

0 commit comments

Comments
 (0)