/ QGIS Public
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Change data source when re-adding an existing layer to the store
The previous implementation was just skipping a layer if a layer with the same id was already in the store, we are now checking if the layer validity has changed from invalid to valid, and in that case we reset the data source of the existing layer. Use case: bad layer handling.
- Loading branch information
Showing 1 changed file with 5 additions and 0 deletions.