This commit is contained in:
Matthias Kuhn 2019-10-05 09:03:00 +02:00 committed by Nyall Dawson
parent 958a6ee90b
commit bb181c828a

View File

@ -1003,12 +1003,11 @@ QStringList QgsApplication::svgPaths()
//local directories to search when looking for an SVG with a given basename
//defined by user in options dialog
QgsSettings settings;
QStringList pathList = settings.value( QStringLiteral( "svg/searchPathsForSVG" ) ).toStringList();
const QStringList pathList = settings.value( QStringLiteral( "svg/searchPathsForSVG" ) ).toStringList();
// maintain user set order while stripping duplicates
QStringList paths;
const auto constPathList = pathList;
for ( const QString &path : constPathList )
for ( const QString &path : pathList )
{
if ( !paths.contains( path ) )
paths.append( path );