Skip to content

Commit 6d0e99c

Browse files
Determine unique name for the last row also
1 parent dee7900 commit 6d0e99c

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
@@ -1582,9 +1582,9 @@ string determineUniqueRoute(string Route)
15821582
while (!found)
15831583
{
15841584
found = true;
1585-
for (int i = 0; i < dataGridViewManualInstall.Rows.Count - 1; i++)
1585+
for (int i = 0; i < dataGridViewManualInstall.Rows.Count; i++)
15861586
{
1587-
if (((dataGridViewManualInstall.Rows[i].Cells[0].Value.ToString() == route) && (!dataGridViewManualInstall.Rows[i].Selected)) ||
1587+
if (((!dataGridViewManualInstall.Rows[i].Selected)) && (dataGridViewManualInstall.Rows[i].Cells[0].Value.ToString() == route) ||
15881588
(AutoInstallRoutes.ContainsKey(route))) {
15891589
seqNr++;
15901590
route = Route + " (" + seqNr + ")";

0 commit comments

Comments
 (0)