Skip to content
Permalink
Browse files
import vector layer: fix override layer option (follow f8d5d43)
  • Loading branch information
brushtyler committed Apr 15, 2012
1 parent f538dc8 commit d419b58922372693992c0c3618ab9fecac9d4aa3
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgsvectorlayerimport.cpp
@@ -215,7 +215,11 @@ QgsVectorLayerImport::importLayer( QgsVectorLayer* layer,
}
}

bool overwrite = options->take( "overwrite" ).toBool();
bool overwrite = false;
if ( options )
{
overwrite = options->take( "overwrite" ).toBool();
}

QgsVectorLayerImport * writer =
new QgsVectorLayerImport( uri, providerKey, fields, layer->wkbType(), outputCRS, overwrite, options );

0 comments on commit d419b58

Please sign in to comment.