Skip to content

Commit

Permalink
Remove empty wms keyword list from project properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 26, 2012
1 parent ea6802e commit 8505295
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/qgsprojectproperties.cpp
Expand Up @@ -572,7 +572,16 @@ void QgsProjectProperties::apply()
QgsProject::instance()->writeEntry( "WMSUrl", "/", mWMSUrlLineEdit->text() );
QgsProject::instance()->writeEntry( "WMSFees", "/", mWMSFees->text() );
QgsProject::instance()->writeEntry( "WMSAccessConstraints", "/", mWMSAccessConstraints->text() );
QgsProject::instance()->writeEntry( "WMSKeywordList", "/", mWMSKeywordList->text().split( "," ) );
//WMS keyword list
QStringList keywordStringList = mWMSKeywordList->text().split( "," );
if ( keywordStringList.size() > 0 )
{
QgsProject::instance()->writeEntry( "WMSKeywordList", "/", mWMSKeywordList->text().split( "," ) );
}
else
{
QgsProject::instance()->removeEntry( "WMSKeywordList", "/" );
}

if ( grpWMSExt->isChecked() )
{
Expand Down

0 comments on commit 8505295

Please sign in to comment.