We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fe32ba4 commit 657ac10Copy full SHA for 657ac10
src/providers/ogr/qgsogrprovider.cpp
@@ -1103,6 +1103,13 @@ bool QgsOgrProvider::addAttributes( const QList<QgsField> &attributes )
1103
if ( !doInitialActionsForEdition() )
1104
return false;
1105
1106
+ if ( ogrDriverName == "MapInfo File" )
1107
+ {
1108
+ // adding attributes in mapinfo requires to be able to delete the .dat file
1109
+ // so drop any cached connections.
1110
+ QgsOgrConnPool::instance()->invalidateConnections( filePath() );
1111
+ }
1112
+
1113
bool returnvalue = true;
1114
1115
for ( QList<QgsField>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter )
0 commit comments