Skip to content
Permalink
Browse files
Render WFS layers added when 'Keep dialog open' is enabled (#14935)
And remove a few left overs (MapCRS, MapExtent) that were only used
by the provider in QGIS <= 2.14.

It is not completely obvious why the canevas refresh was disabled
before while the dialog is opened. Perhaps a conflict with the
previous Load GML progress dialog that was modal ?
  • Loading branch information
rouault committed Jun 1, 2016
1 parent ba0fdfa commit 47a301ca61a932c6fe04f62e837e6b4672cbace5
Showing with 0 additions and 15 deletions.
  1. +0 −15 src/app/qgisapp.cpp
@@ -4062,11 +4062,6 @@ void QgisApp::addWcsLayer()

void QgisApp::addWfsLayer()
{
if ( !mMapCanvas )
{
return;
}

QgsDebugMsg( "about to addWfsLayer" );

// TODO: QDialog for now, switch to QWidget in future
@@ -4079,17 +4074,7 @@ void QgisApp::addWfsLayer()
connect( wfss, SIGNAL( addWfsLayer( QString, QString ) ),
this, SLOT( addWfsLayer( QString, QString ) ) );

//re-enable wfs with extent setting: pass canvas info to source select
wfss->setProperty( "MapExtent", mMapCanvas->extent().toString() );
if ( mMapCanvas->mapSettings().hasCrsTransformEnabled() )
{ //if "on the fly" reprojection is active, pass canvas CRS
wfss->setProperty( "MapCRS", mMapCanvas->mapSettings().destinationCrs().authid() );
}

bool bkRenderFlag = mMapCanvas->renderFlag();
mMapCanvas->setRenderFlag( false );
wfss->exec();
mMapCanvas->setRenderFlag( bkRenderFlag );
delete wfss;
}

0 comments on commit 47a301c

Please sign in to comment.