Fixed a bug (again) that caused slow opening of the images browser with many (thousands) textures.

This commit is contained in:
codeimp 2009-04-26 17:14:47 +00:00
parent 3b9eed97ec
commit 3cd3bdee7f
2 changed files with 10 additions and 6 deletions

View file

@ -153,10 +153,12 @@ namespace CodeImp.DoomBuilder.Windows
}
}
// Still none found? Then select the first
if(!foundselecttexture)
texturesets.Items[0].Selected = true;
// WARNING: Some strange behavior of the listview here!
// When you leave this line out, the list becomes very slow.
// Also, this does not change the item selected previously.
texturesets.Items[0].Selected = true;
// Texture to select when list is filled
selecttextureonfill = selecttexture;
// Make groups

View file

@ -154,10 +154,12 @@ namespace CodeImp.DoomBuilder.Windows
}
}
// Still none found? Then select the first
if(!foundselecttexture)
texturesets.Items[0].Selected = true;
// WARNING: Some strange behavior of the listview here!
// When you leave this line out, the list becomes very slow.
// Also, this does not change the item selected previously.
texturesets.Items[0].Selected = true;
// Texture to select when list is filled
selecttextureonfill = selecttexture;
// Make groups