Skip to content

Commit 15a81bd

Browse files
committedJan 24, 2019
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.
1 parent 33788c9 commit 15a81bd

File tree

2 files changed

+591
-594
lines changed

2 files changed

+591
-594
lines changed
 

‎src/app/qgsprojectproperties.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,10 +1115,7 @@ void QgsProjectProperties::apply()
11151115

11161116
QgsProject::instance()->writeEntry( QStringLiteral( "WMSServiceCapabilities" ), QStringLiteral( "/" ), grpOWSServiceCapabilities->isChecked() );
11171117
QgsProject::instance()->writeEntry( QStringLiteral( "WMSServiceTitle" ), QStringLiteral( "/" ), mWMSTitle->text() );
1118-
1119-
if ( !mWMSName->text().isEmpty() )
1120-
QgsProject::instance()->writeEntry( QStringLiteral( "WMSRootName" ), QStringLiteral( "/" ), mWMSName->text() );
1121-
1118+
QgsProject::instance()->writeEntry( QStringLiteral( "WMSRootName" ), QStringLiteral( "/" ), mWMSName->text() );
11221119
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactOrganization" ), QStringLiteral( "/" ), mWMSContactOrganization->text() );
11231120
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactPerson" ), QStringLiteral( "/" ), mWMSContactPerson->text() );
11241121
QgsProject::instance()->writeEntry( QStringLiteral( "WMSContactMail" ), QStringLiteral( "/" ), mWMSContactMail->text() );

‎tests/testdata/qgis_server/test_project_wms_grouped_layers.qgs

Lines changed: 590 additions & 590 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.