Skip to content

Commit 47a301c

Browse files
committedJun 1, 2016
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 ?
1 parent ba0fdfa commit 47a301c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4062,11 +4062,6 @@ void QgisApp::addWcsLayer()
40624062

40634063
void QgisApp::addWfsLayer()
40644064
{
4065-
if ( !mMapCanvas )
4066-
{
4067-
return;
4068-
}
4069-
40704065
QgsDebugMsg( "about to addWfsLayer" );
40714066

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

4082-
//re-enable wfs with extent setting: pass canvas info to source select
4083-
wfss->setProperty( "MapExtent", mMapCanvas->extent().toString() );
4084-
if ( mMapCanvas->mapSettings().hasCrsTransformEnabled() )
4085-
{ //if "on the fly" reprojection is active, pass canvas CRS
4086-
wfss->setProperty( "MapCRS", mMapCanvas->mapSettings().destinationCrs().authid() );
4087-
}
4088-
4089-
bool bkRenderFlag = mMapCanvas->renderFlag();
4090-
mMapCanvas->setRenderFlag( false );
40914077
wfss->exec();
4092-
mMapCanvas->setRenderFlag( bkRenderFlag );
40934078
delete wfss;
40944079
}
40954080

0 commit comments

Comments
 (0)
Please sign in to comment.