Skip to content
Permalink
Browse files

Remove empty wms keyword list from project properties

  • Loading branch information
mhugent committed Oct 26, 2012
1 parent ea6802e commit 8505295d77753a52af283cda4ddc977eead617c1
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/app/qgsprojectproperties.cpp
@@ -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() )
{

0 comments on commit 8505295

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