Merge pull request #218 from GaborApatiNagy/CA-139588-2

CA-139588: Uncaught exception in License Manager
This commit is contained in:
Mihaela Stoica 2014-09-22 16:04:17 +01:00
commit 9325fde24f

View File

@ -128,7 +128,7 @@ namespace XenAdmin.Dialogs
Controller.SetStatusIcon(e.RowIndex, lRow.RowStatus);
if (senderGrid.SelectedRows.Count >= 1 && senderGrid.SelectedRows[0].Index == e.RowIndex)
if (!e.RefreshGrid && senderGrid.SelectedRows.Count > 0 && senderGrid.SelectedRows[0].Index == e.RowIndex)
{
Controller.SummariseSelectedRow(checkableDataGridView.GetCheckableRow(e.RowIndex));
}