Skip to content

Commit

Permalink
avoid reloading fields when existing provider encoding is re-set (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 11, 2014
1 parent 3224608 commit 3abfb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 3abfb62

Please sign in to comment.