Skip to content

Commit 7a12d5f

Browse files
committedApr 4, 2017
Revert "[Processing] prevent error when running escapeAndJoin with empty param string"
This reverts commit c2a566a.
1 parent c2a566a commit 7a12d5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎python/plugins/processing/algs/gdal/GdalAlgorithm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131
from qgis.PyQt.QtCore import QUrl
3232

33-
from qgis.core import QgsApplication
33+
from qgis.core import (QgsApplication,
34+
QgsVectorFileWriter)
3435

3536
from processing.core.GeoAlgorithm import GeoAlgorithm
3637
from processing.algs.gdal.GdalAlgorithmDialog import GdalAlgorithmDialog
@@ -58,7 +59,7 @@ def getCustomParametersDialog(self):
5859
def processAlgorithm(self, feedback):
5960
commands = self.getConsoleCommands()
6061
layers = dataobjects.getVectorLayers()
61-
supported = dataobjects.getSupportedOutputVectorLayerExtensions()
62+
supported = QgsVectorFileWriter.supportedFormatExtensions()
6263
for i, c in enumerate(commands):
6364
for layer in layers:
6465
if layer.source() in c:

0 commit comments

Comments
 (0)
Please sign in to comment.