mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Keep the user set order for svg paths
This commit is contained in:
parent
a2166bd042
commit
3abded3186
@ -714,8 +714,20 @@ QStringList QgsApplication::svgPaths()
|
||||
myPathList = myPaths.split( '|' );
|
||||
}
|
||||
|
||||
myPathList << ABISYM( mDefaultSvgPaths );
|
||||
return myPathList.toSet().toList();
|
||||
// maintain user set order while stripping duplicates
|
||||
QStringList paths;
|
||||
Q_FOREACH ( const QString& path, myPathList )
|
||||
{
|
||||
if ( !paths.contains( path ) )
|
||||
paths.append( path );
|
||||
}
|
||||
Q_FOREACH ( const QString& path, ABISYM( mDefaultSvgPaths ) )
|
||||
{
|
||||
if ( !paths.contains( path ) )
|
||||
paths.append( path );
|
||||
}
|
||||
|
||||
return paths;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user