Skip to content
Permalink
Browse files

[ogr] Only throw validity error in reloadData() when previously valid

  • Loading branch information
nirvn committed Apr 18, 2019
1 parent 1fac5a6 commit 5f7ed768540b11854c704df1aa7050249af56e63
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -4432,10 +4432,11 @@ void QgsOgrProvider::close()

void QgsOgrProvider::reloadData()
{
bool wasValid = mValid;
forceReload();
close();
open( OpenModeSameAsCurrent );
if ( !mValid )
if ( !mValid && wasValid )
pushError( tr( "Cannot reopen datasource %1" ).arg( dataSourceUri() ) );
}

0 comments on commit 5f7ed76

Please sign in to comment.
You can’t perform that action at this time.