Fixed crash on double click of usage list item

Fix missing end message if continuous section.
This commit is contained in:
2012-07-10 13:24:51 +00:00
parent 73084c36eb
commit 2812d5b9d7
4 changed files with 20 additions and 10 deletions

View File

@@ -260,10 +260,13 @@ namespace Volian.Controls.Library
Application.DoEvents();
}
}
private bool _ProcessingSelectedValueChanged = false;
private void listBoxUsages_SelectedValueChanged(object sender, EventArgs e)
{
if (!_InitializingLibDocList)
{
if (_ProcessingSelectedValueChanged) return;
_ProcessingSelectedValueChanged = true;
if (listBoxUsages.SelectedIndex == -1) return;
DocumentInfo di = LibDocList[listBoxLibDocs.SelectedIndex];
// see if the library document actually has data - data migration may have created a 'null' content within the
@@ -274,6 +277,7 @@ namespace Volian.Controls.Library
return;
}
_DisplayTabControl.OpenItem(di.LibraryDocumentUsageList[listBoxUsages.SelectedIndex]);
_ProcessingSelectedValueChanged = false;
}
}
#endregion