Skip to content

Commit 6380c71

Browse files
When in the "Manual Installed" tab a route is added or changed for which the route name is the same as an "Auto Installed" route, the manual name is changed by adding (1), (2) etc.
1 parent 4b5b7ab commit 6380c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Menu/ContentForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,8 +1544,8 @@ string determineUniqueRoute(string Route)
15441544
found = true;
15451545
for (int i = 0; i < dataGridViewManualInstall.Rows.Count - 1; i++)
15461546
{
1547-
if ((dataGridViewManualInstall.Rows[i].Cells[0].Value.ToString() == route) && (!dataGridViewManualInstall.Rows[i].Selected))
1548-
{
1547+
if (((dataGridViewManualInstall.Rows[i].Cells[0].Value.ToString() == route) && (!dataGridViewManualInstall.Rows[i].Selected)) ||
1548+
(AutoInstallRoutes.ContainsKey(route))) {
15491549
seqNr++;
15501550
route = Route + " (" + seqNr + ")";
15511551
found = false;

0 commit comments

Comments
 (0)