Skip to content

Commit a658135

Browse files
committedJun 5, 2017
Remove global processing use selection setting
1 parent 7f68734 commit a658135

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,9 @@ def exportVectorLayer(self, orgFilename):
525525
else:
526526
layer = QgsProcessingUtils.mapLayerFromString(orgFilename, context, False)
527527
if layer:
528-
useSelection = \
529-
ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED)
528+
#TODO
529+
#useSelection = \
530+
# ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED)
530531
if useSelection and layer.selectedFeatureCount() != 0:
531532
filename = dataobjects.exportVectorLayer(layer)
532533
else:

‎python/plugins/processing/core/ProcessingConfig.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class ProcessingConfig(object):
5353
VECTOR_LINE_STYLE = 'VECTOR_LINE_STYLE'
5454
VECTOR_POLYGON_STYLE = 'VECTOR_POLYGON_STYLE'
5555
SHOW_RECENT_ALGORITHMS = 'SHOW_RECENT_ALGORITHMS'
56-
USE_SELECTED = 'USE_SELECTED'
5756
FILTER_INVALID_GEOMETRIES = 'FILTER_INVALID_GEOMETRIES'
5857
USE_FILENAME_AS_LAYER_NAME = 'USE_FILENAME_AS_LAYER_NAME'
5958
KEEP_DIALOG_OPEN = 'KEEP_DIALOG_OPEN'
@@ -84,10 +83,6 @@ def initialize():
8483
ProcessingConfig.tr('General'),
8584
ProcessingConfig.KEEP_DIALOG_OPEN,
8685
ProcessingConfig.tr('Keep dialog open after running an algorithm'), False))
87-
ProcessingConfig.addSetting(Setting(
88-
ProcessingConfig.tr('General'),
89-
ProcessingConfig.USE_SELECTED,
90-
ProcessingConfig.tr('Use only selected features'), True))
9186
ProcessingConfig.addSetting(Setting(
9287
ProcessingConfig.tr('General'),
9388
ProcessingConfig.USE_FILENAME_AS_LAYER_NAME,

‎python/plugins/processing/tools/dataobjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def exportVectorLayer(layer, supported=None):
196196
output = getTempFilenameInTempFolder(basename)
197197
else:
198198
output = getTempFilename("shp")
199-
useSelection = ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED)
199+
useSelection = False # TODO ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED)
200200
if useSelection and layer.selectedFeatureCount() != 0:
201201
writer = QgsVectorFileWriter(output, systemEncoding,
202202
layer.fields(),

0 commit comments

Comments
 (0)
Please sign in to comment.