Skip to content
Permalink
Browse files

avoid reloading fields when existing provider encoding is re-set (fixes

  • Loading branch information
jef-n committed Jun 11, 2014
1 parent 3224608 commit 3abfb62c616813f70d728aa9a45457140adc1b29
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -583,7 +583,7 @@ const QgsVectorDataProvider* QgsVectorLayer::dataProvider() const

void QgsVectorLayer::setProviderEncoding( const QString& encoding )
{
if ( mDataProvider )
if ( mDataProvider && mDataProvider->encoding() != encoding )
{
mDataProvider->setEncoding( encoding );
updateFields();

0 comments on commit 3abfb62

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