Skip to content
Permalink
Browse files

[QGIS-Server] Enhance store project keyword list

  • Loading branch information
rldhont committed Nov 26, 2015
1 parent 001f4bc commit da4fe7e018d9d2e979b046575357727c8d38d083
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsprojectproperties.cpp
@@ -272,7 +272,7 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
mWMSUrlLineEdit->setText( QgsProject::instance()->readEntry( "WMSUrl", "/", "" ) );
mWMSFees->setText( QgsProject::instance()->readEntry( "WMSFees", "/", "" ) );
mWMSAccessConstraints->setText( QgsProject::instance()->readEntry( "WMSAccessConstraints", "/", "" ) );
mWMSKeywordList->setText( QgsProject::instance()->readListEntry( "WMSKeywordList", "/" ).join( "," ) );
mWMSKeywordList->setText( QgsProject::instance()->readListEntry( "WMSKeywordList", "/" ).join( ", " ) );

// WMS GetFeatureInfo precision
int WMSprecision = QgsProject::instance()->readNumEntry( "WMSPrecision", "/", -1 );
@@ -743,7 +743,8 @@ void QgsProjectProperties::apply()
QStringList keywordStringList = mWMSKeywordList->text().split( ',' );
if ( keywordStringList.size() > 0 )
{
QgsProject::instance()->writeEntry( "WMSKeywordList", "/", mWMSKeywordList->text().split( ',' ) );
keywordStringList.replaceInStrings( QRegExp( "^\\s+" ), "" ).replaceInStrings( QRegExp( "\\s+$" ), "" );
QgsProject::instance()->writeEntry( "WMSKeywordList", "/", keywordStringList );
}
else
{

0 comments on commit da4fe7e

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