Prevent crash when updating ListView and changing ListViewItem collection
This commit is contained in:
parent
828b9ddf65
commit
a26ddb7492
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user