From a26ddb74927d7921971bbdd2e37b4b5a508c71c5 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Fri, 17 Jul 2015 15:54:22 -0400 Subject: [PATCH] Prevent crash when updating ListView and changing ListViewItem collection --- .../Editors/FileSystemEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editors/FileSystemEditor.cs b/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editors/FileSystemEditor.cs index 4f83dc53..ee37eb62 100644 --- a/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editors/FileSystemEditor.cs +++ b/CSharp/Engines/WindowsForms/Libraries/UniversalEditor.UserInterface.WindowsForms/Editors/FileSystemEditor.cs @@ -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;