Fix infinite loop on cloning environment group with another clone present
Clone numbering was broken and fixed to the number 1,
because the argument was already resolved initially.
- Clone existing environment group
- Clone the same environment group a second time
Without this patch an infinite loop is entered.
Reviewers: KDevelop, kfunk
Reviewed By: KDevelop, kfunk
Subscribers: kfunk, kdevelop-devel
Differential Revision: https://phabricator.kde.org/D3956