Skip to content

Commit 7cacb17

Browse files
vkutueviakov
authored andcommitted
Allow multiple on_success handlers
1 parent beaab34 commit 7cacb17

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/robots/common/twoDModel/src/engine/constraints/constraintsChecker.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,9 @@ void ConstraintsChecker::programFinished(qReal::interpretation::StopReason reaso
303303
void ConstraintsChecker::onSuccess()
304304
{
305305
for (const auto &event : mEvents) {
306-
if (event->id() == "on_success") {
306+
if (event->id().startsWith("on_success")) {
307307
event->setUp();
308308
event->check();
309-
break;
310309
}
311310
}
312311
emit success();

0 commit comments

Comments
 (0)