Skip to content
Permalink
Browse files

Return default value if value is empty

  • Loading branch information
pblottiere committed Jan 21, 2019
1 parent 7e5dc18 commit 77d2aaa1e39290c7a70a974f05b180922f258367
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/server/qgsserverparameters.cpp
@@ -64,7 +64,12 @@ QColor QgsServerParameterDefinition::toColor( bool &ok ) const

QString QgsServerParameterDefinition::toString() const
{
return mValue.toString();
QString value = mValue.toString();

if ( value.isEmpty() )
value = mDefaultValue.toString();

return value;
}

QStringList QgsServerParameterDefinition::toStringList( const char delimiter ) const

0 comments on commit 77d2aaa

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