Skip to content
Permalink
Browse files

Hide extra encoding option from the vector "save as" dialog

There is already another combo box for encoding selection.
  • Loading branch information
wonder-sk committed Jan 23, 2016
1 parent 5512d54 commit a618f85a964c80f73feffc203550456e61f2f2c1
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsvectorfilewriter.cpp
@@ -687,6 +687,9 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
true // Allow None
) );

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

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

0 comments on commit a618f85

Please sign in to comment.
You can’t perform that action at this time.