Skip to content
Permalink
Browse files

[QGIS-Server] Enhance store project keyword list

  • Loading branch information
rldhont committed Nov 26, 2015
1 parent 29e2b6a commit f4ef1ad3a40e10bb6c86913111a65da13863ca8a
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 );
@@ -737,7 +737,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 f4ef1ad

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