Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
1 deletion.
-
+3
−1
python/plugins/processing/algs/qgis/DeleteColumn.py
|
@@ -25,6 +25,8 @@ |
|
|
|
|
|
__revision__ = '$Format:%H$' |
|
|
|
|
|
from qgis.PyQt.QtCore import QCoreApplication |
|
|
|
|
|
from qgis.core import (QgsProcessingParameterField, |
|
|
QgsProcessing, |
|
|
QgsProcessingFeatureSource) |
|
@@ -74,7 +76,7 @@ def prepareAlgorithm(self, parameters, context, feedback): |
|
|
for f in self.fields_to_delete: |
|
|
index = source.fields().lookupField(f) |
|
|
if index < 0: |
|
|
feedback.pushInfo(self.tr('Field “{}” does not exist in input layer').format(f)) |
|
|
feedback.pushInfo(QCoreApplication.translate('DeleteColumn', 'Field “{}” does not exist in input layer').format(f)) |
|
|
|
|
|
return super().prepareAlgorithm(parameters, context, feedback) |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.