/ QGIS Public
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OGR] Ensure subset string is set when reopening dataset
QgsOgrProvider::reloadData calls close() and open(), which in turn called setSubsetString with mSubsetString. Since setSubsetString does nothing if the passed sql string is equal to mSubsetString, this resulted in the substring not being set on re-open. This commit clears mSubsetString before calling setSubsetString, and blocks signals when calling setSubsetString to avoid an endless recursion of emit dataChanged -> reload. Fixes #17122.
- Loading branch information
Showing 2 changed files with 16 additions and 2 deletions.