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 c0c19f0 commit d332292Copy full SHA for d332292
src/providers/ogr/qgsogrprovider.cpp
@@ -4525,10 +4525,11 @@ void QgsOgrProvider::close()
4525
4526
void QgsOgrProvider::reloadData()
4527
{
4528
+ bool wasValid = mValid;
4529
forceReload();
4530
close();
4531
open( OpenModeSameAsCurrent );
- if ( !mValid )
4532
+ if ( !mValid && wasValid )
4533
pushError( tr( "Cannot reopen datasource %1" ).arg( dataSourceUri() ) );
4534
}
4535
0 commit comments