minor glitch in file selector, when opening with an operator sort wasn't set.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 7 Feb 2013 00:46:53 +0000 (00:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 7 Feb 2013 00:46:53 +0000 (00:46 +0000)
source/blender/editors/space_file/filesel.c

index d33697b..8c45b16 100644 (file)
@@ -244,9 +244,11 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                params->display = FILE_SHORTDISPLAY;
                params->filter = 0;
                params->filter_glob[0] = '\0';
-               params->sort = FILE_SORT_ALPHA;
        }
 
+       /* operator has no setting for this */
+       params->sort = FILE_SORT_ALPHA;
+
 
        /* initialize the list with previous folders */
        if (!sfile->folders_prev)