Increment iterator before any potential continue

Authored by broulik on Jun 22 2019, 3:59 PM.

Description

Increment iterator before any potential continue

Otherwise if none of the results are viable, we could end up in an infinite loop because we continue before
we actually advance the iterator but also never reach the actionCount limit.

Differential Revision: https://phabricator.kde.org/D22004

Details