mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
import vector layer: fix override layer option (follow f8d5d432)
This commit is contained in:
parent
f538dc802f
commit
d419b58922
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user