File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 37
37
#include " qgsvectorlayer.h"
38
38
39
39
#include < QAction>
40
+ #include < QDir>
40
41
#include < QFileInfo>
41
42
#include < QMessageBox>
42
43
#include < QSettings>
@@ -798,8 +799,8 @@ void QgsGrassPlugin::unload()
798
799
// the GRASS plugin resource bundle [TS]
799
800
QIcon QgsGrassPlugin::getThemeIcon ( const QString theName )
800
801
{
801
- QString myPath = " :/ " + QgsApplication::themeName () + " / grass/ " + theName;
802
- QString myDefaultPath = " :/default/ grass/ " + theName;
802
+ QString myPath = QgsApplication::activeThemePath () + QDir::separator () + " grass" + QDir::separator () + theName;
803
+ QString myDefaultPath = QgsApplication::defaultThemePath () + QDir::separator () + " grass" + QDir::separator () + theName;
803
804
if ( QFile::exists ( myPath ) )
804
805
{
805
806
return QIcon ( myPath );
You can’t perform that action at this time.
0 commit comments