Prevent crash when updating ListView and changing ListViewItem collection

This commit is contained in:
Michael Becker 2015-07-17 15:54:22 -04:00
parent 828b9ddf65
commit a26ddb7492

View File

@ -343,7 +343,7 @@ namespace UniversalEditor.UserInterface.WindowsForms.Editors
lv.Items.Clear();
if (tIconLoader.ThreadState == System.Threading.ThreadState.Running)
if (tIconLoader.ThreadState != System.Threading.ThreadState.Stopped)
{
tIconLoader.Abort();
tIconLoader = null;