Skip to content
Permalink
Browse files

Remaining fix for bug #3459

git-svn-id: http://svn.osgeo.org/qgis/trunk@15121 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 2, 2011
1 parent c56527f commit 68bd1e569edfc287ef007b5412f3d36020fa4872
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/app/qgisapp.cpp
@@ -4933,16 +4933,22 @@ void QgisApp::layerSubsetString()

// launch the query builder
QgsQueryBuilder *qb = new QgsQueryBuilder( vlayer, this );
QString subsetBefore = vlayer->subsetString();

// Set the sql in the query builder to the same in the prop dialog
// (in case the user has already changed it)
qb->setSql( vlayer->subsetString() );
// Open the query builder
if ( qb->exec() )
{
// if the sql is changed, update it in the prop subset text box
vlayer->setSubsetString( qb->sql() );
mMapCanvas->refresh();
if ( subsetBefore != qb->sql() )
{
mMapCanvas->refresh();
if ( mMapLegend )
{
mMapLegend->refreshLayerSymbology( vlayer->getLayerID(), false );
}
}
}

// delete the query builder object

0 comments on commit 68bd1e5

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