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 c0c19f0 commit d332292863b49b1083ee9403b13c265ab670d7a3
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -4525,10 +4525,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 d332292

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