Skip to content

Commit a618f85

Browse files
committedJan 23, 2016
Hide extra encoding option from the vector "save as" dialog
There is already another combo box for encoding selection.
1 parent 5512d54 commit a618f85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/core/qgsvectorfilewriter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
687687
true // Allow None
688688
) );
689689

690+
// there does not seem to be a reason to provide this option to the user again
691+
// as we set encoding for shapefiles based on "fileEncoding" parameter passed to the writer
692+
#if 0
690693
layerOptions.insert( "ENCODING", new SetOption(
691694
QObject::tr( "set the encoding value in the DBF file. "
692695
"The default value is LDID/87. It is not clear "
@@ -695,6 +698,7 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
695698
<< "LDID/87",
696699
"LDID/87" // Default value
697700
) );
701+
#endif
698702

699703
layerOptions.insert( "RESIZE", new BoolOption(
700704
QObject::tr( "Set to YES to resize fields to their optimal size." ),

0 commit comments

Comments
 (0)
Please sign in to comment.