fix [#28809] Fileselect strange icon display.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Oct 2011 07:57:33 +0000 (07:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Oct 2011 07:57:33 +0000 (07:57 +0000)
source/blender/editors/space_file/filesel.c

index 1e113abfcd2550c930941efcceee8b50935eafb7..645f54a5767c64e2871b09ab5b7db72793c889cf 100644 (file)
@@ -246,6 +246,11 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                sfile->folders_prev = folderlist_new();
        folderlist_pushdir(sfile->folders_prev, sfile->params->dir);
 
+       /* switching thumbnails needs to recalc layout [#28809] */
+       if (sfile->layout) {
+               sfile->layout->dirty= 1;
+       }
+
        return 1;
 }