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 32d24dc commit 6724d01Copy full SHA for 6724d01
src/providers/ogr/qgsogrprovider.cpp
@@ -4432,10 +4432,11 @@ void QgsOgrProvider::close()
4432
4433
void QgsOgrProvider::reloadData()
4434
{
4435
+ bool wasValid = mValid;
4436
forceReload();
4437
close();
4438
open( OpenModeSameAsCurrent );
- if ( !mValid )
4439
+ if ( !mValid && wasValid )
4440
pushError( tr( "Cannot reopen datasource %1" ).arg( dataSourceUri() ) );
4441
}
4442
0 commit comments