File tree 1 file changed +7
-3
lines changed
python/plugins/processing/tools
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -70,22 +70,26 @@ def resetLoadedLayers():
70
70
71
71
def getSupportedOutputVectorLayerExtensions ():
72
72
formats = QgsVectorFileWriter .supportedFiltersAndFormats ()
73
- exts = ['shp' ] # shp is the default, should be the first
73
+ exts = []
74
74
for extension in list (formats .keys ()):
75
75
extension = str (extension )
76
76
extension = extension [extension .find ('*.' ) + 2 :]
77
77
extension = extension [:extension .find (' ' )]
78
78
if extension .lower () != 'shp' :
79
79
exts .append (extension )
80
+ exts .sort ()
81
+ exts .insert (0 , 'shp' ) # shp is the default, should be the first
80
82
return exts
81
83
82
84
83
85
def getSupportedOutputRasterLayerExtensions ():
84
- allexts = ['tif' ]
86
+ allexts = []
85
87
for exts in list (GdalUtils .getSupportedRasters ().values ()):
86
88
for ext in exts :
87
- if ext not in allexts :
89
+ if ext != 'tif' and ext not in allexts :
88
90
allexts .append (ext )
91
+ allexts .sort ()
92
+ allexts .insert (0 , 'tif' ) # tif is the default, should be the first
89
93
return allexts
90
94
91
95
You can’t perform that action at this time.
0 commit comments