Skip to content

Commit

Permalink
fixed a bug that causes crash on loading project
Browse files Browse the repository at this point in the history
  • Loading branch information
2DIPW committed Jun 23, 2023
1 parent ec69e00 commit 040c455
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions audio_dataset_screener/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,9 @@ private void set_move_action_for_current_playing(int folder_number)//为当前
if (projectData.Labels.Count > 0)
{
System.Windows.Forms.TextBox[] folder_paths = { txtboxSortFolder1, txtboxSortFolder2, txtboxSortFolder3, txtboxSortFolder4, txtboxSortFolder5 };
for (int i = 1; i <= 5; i++)
for (int i = 1; i <= projectData.Labels.Count; i++)
{
try
{
folder_paths[i - 1].Text = projectData.Labels[i];
}
catch { }
folder_paths[i - 1].Text = projectData.Labels[i];
}
}
}
Expand Down

0 comments on commit 040c455

Please sign in to comment.