Fix infinite loop on cloning environment group with another clone present

Authored by kossebau on Jan 4 2017, 9:19 PM.

Description

Fix infinite loop on cloning environment group with another clone present

Summary:
Clone numbering was broken and fixed to the number 1,
because the argument was already resolved initially.

Test Plan:

  1. Clone existing environment group
  2. 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