Skip to content

Commit

Permalink
Reload data when subsetString changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 23, 2015
1 parent b54b159 commit 0f2dfdb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ bool QgsDelimitedTextProvider::setSubsetString( QString subset, bool updateFeatu
}
}

emit dataChanged();
return valid;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/memory/qgsmemoryprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ bool QgsMemoryProvider::setSubsetString( QString theSQL, bool updateFeatureCount
}

mSubsetString = theSQL;

emit dataChanged();
return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/mssql/qgsmssqlprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ bool QgsMssqlProvider::setSubsetString( QString theSQL, bool )

mExtent.setMinimal();

emit dataChanged();

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ bool QgsOgrProvider::setSubsetString( QString theSQL, bool updateFeatureCount )
extent_ = 0;
}

emit dataChanged();

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/oracle/qgsoracleprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,8 @@ bool QgsOracleProvider::setSubsetString( QString theSQL, bool updateFeatureCount
}
mLayerExtent.setMinimal();

emit dataChanged();

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,8 @@ bool QgsPostgresProvider::setSubsetString( QString theSQL, bool updateFeatureCou
}
mLayerExtent.setMinimal();

emit dataChanged();

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3191,6 +3191,8 @@ bool QgsSpatiaLiteProvider::setSubsetString( QString theSQL, bool updateFeatureC

getTableSummary();

emit dataChanged();

return false;
}

Expand Down

0 comments on commit 0f2dfdb

Please sign in to comment.