File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2555,14 +2555,7 @@ QgsVectorFileWriter::WriterError QgsVectorFileWriter::writeAsVectorFormat( Prepa
2555
2555
// Special rules for OGR layers
2556
2556
if ( details.providerType == QLatin1String ( " ogr" ) && !details.dataSourceUri .isEmpty () )
2557
2557
{
2558
- QStringList theURIParts = details.dataSourceUri .split ( ' |' );
2559
- QgsStringMap srcUriParams;
2560
- QString srcFileName;
2561
- if ( theURIParts.length () > 0 )
2562
- {
2563
- srcFileName = theURIParts[0 ];
2564
- }
2565
-
2558
+ QString srcFileName ( details.providerUriParams .value ( QLatin1String ( " path" ) ).toString () );
2566
2559
if ( QFile::exists ( srcFileName ) && QFileInfo ( fileName ).canonicalFilePath () == QFileInfo ( srcFileName ).canonicalFilePath () )
2567
2560
{
2568
2561
// Check the layer name too if it's a GPKG/SpatiaLite/SQLite OGR driver (pay attention: camel case in layerName)
You can’t perform that action at this time.
0 commit comments