Skip to content
Permalink
Browse files

Fix OWS project property issue: couldn't unset project title

This is the right behavior, btw there are other issues
in the server component that ignores the main bool
setting WMSServiceCapabilities completely.
  • Loading branch information
elpaso committed Jan 24, 2019
1 parent 33788c9 commit 15a81bdf23d741997b3cb6b9465dce7be40db0cd
Showing with 591 additions and 594 deletions.
  1. +1 −4 src/app/qgsprojectproperties.cpp
  2. +590 −590 tests/testdata/qgis_server/test_project_wms_grouped_layers.qgs
@@ -1115,10 +1115,7 @@ void QgsProjectProperties::apply()

QgsProject::instance()->writeEntry( QStringLiteral( "WMSServiceCapabilities" ), QStringLiteral( "/" ), grpOWSServiceCapabilities->isChecked() );
QgsProject::instance()->writeEntry( QStringLiteral( "WMSServiceTitle" ), QStringLiteral( "/" ), mWMSTitle->text() );

if ( !mWMSName->text().isEmpty() )
QgsProject::instance()->writeEntry( QStringLiteral( "WMSRootName" ), QStringLiteral( "/" ), mWMSName->text() );

QgsProject::instance()->writeEntry( QStringLiteral( "WMSRootName" ), QStringLiteral( "/" ), mWMSName->text() );
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactOrganization" ), QStringLiteral( "/" ), mWMSContactOrganization->text() );
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactPerson" ), QStringLiteral( "/" ), mWMSContactPerson->text() );
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactMail" ), QStringLiteral( "/" ), mWMSContactMail->text() );

0 comments on commit 15a81bd

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