Fixed duplicated entries and unnecessary file locking in ProfViewer (bug 4510, r=dvander)

This commit is contained in:
Jason Booth 2010-07-18 21:39:15 -04:00
parent 78e51e6b11
commit fbbf193345
2 changed files with 4 additions and 7 deletions

View File

@ -47,13 +47,9 @@ namespace profviewer
ProfileItem atom;
ListViewItem item;
if (m_Report == null)
{
report_list.Items.Clear();
report_info_duration.Text = "";
report_info_starttime.Text = "";
return;
}
report_list.Items.Clear();
report_info_duration.Text = "";
report_info_starttime.Text = "";
report_info_duration.Text = m_Report.Duration.ToString() + " seconds";
report_info_starttime.Text = m_Report.StartTime.ToString();

View File

@ -133,6 +133,7 @@ namespace profviewer
}
}
}
xml.Close();
}
public double Duration