@@ -347,6 +347,8 @@ QDomDocument QgsManageConnectionsDialog::saveOWSConnections( const QStringList &
347
347
el.setAttribute ( " invertAxisOrientation" , settings.value ( path + connections[i] + " /invertAxisOrientation" , false ).toBool () ? " true" : " false" );
348
348
}
349
349
350
+ el.setAttribute ( " referer" , settings.value ( path + connections[ i ] + " /referer" , " " ).toString () );
351
+
350
352
path = " /Qgis/" + service.toUpper () + " /" ;
351
353
el.setAttribute ( " username" , settings.value ( path + connections[ i ] + " /username" , " " ).toString () );
352
354
el.setAttribute ( " password" , settings.value ( path + connections[ i ] + " /password" , " " ).toString () );
@@ -372,6 +374,8 @@ QDomDocument QgsManageConnectionsDialog::saveWFSConnections( const QStringList &
372
374
el.setAttribute ( " name" , connections[ i ] );
373
375
el.setAttribute ( " url" , settings.value ( path + connections[ i ] + " /url" , " " ).toString () );
374
376
377
+ el.setAttribute ( " referer" , settings.value ( path + connections[ i ] + " /referer" , " " ).toString () );
378
+
375
379
path = " /Qgis/WFS/" ;
376
380
el.setAttribute ( " username" , settings.value ( path + connections[ i ] + " /username" , " " ).toString () );
377
381
el.setAttribute ( " password" , settings.value ( path + connections[ i ] + " /password" , " " ).toString () );
@@ -576,6 +580,7 @@ void QgsManageConnectionsDialog::loadOWSConnections( const QDomDocument &doc, co
576
580
settings.setValue ( QString ( " /" + connectionName + " /ignoreGetFeatureInfoURI" ), child.attribute ( " ignoreGetFeatureInfoURI" ) == " true" );
577
581
settings.setValue ( QString ( " /" + connectionName + " /ignoreAxisOrientation" ), child.attribute ( " ignoreAxisOrientation" ) == " true" );
578
582
settings.setValue ( QString ( " /" + connectionName + " /invertAxisOrientation" ), child.attribute ( " invertAxisOrientation" ) == " true" );
583
+ settings.setValue ( QString ( " /" + connectionName + " /referer" ), child.attribute ( " referer" ) );
579
584
settings.endGroup ();
580
585
581
586
if ( !child.attribute ( " username" ).isEmpty () )
@@ -656,6 +661,7 @@ void QgsManageConnectionsDialog::loadWFSConnections( const QDomDocument &doc, co
656
661
// no dups detected or overwrite is allowed
657
662
settings.beginGroup ( " /Qgis/connections-wfs" );
658
663
settings.setValue ( QString ( " /" + connectionName + " /url" ) , child.attribute ( " url" ) );
664
+ settings.setValue ( QString ( " /" + connectionName + " /referer" ), child.attribute ( " referer" ) );
659
665
settings.endGroup ();
660
666
661
667
if ( !child.attribute ( " username" ).isEmpty () )
0 commit comments