File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3737#include " qgsvectorlayer.h"
3838
3939#include < QAction>
40+ #include < QDir>
4041#include < QFileInfo>
4142#include < QMessageBox>
4243#include < QSettings>
@@ -798,8 +799,8 @@ void QgsGrassPlugin::unload()
798799// the GRASS plugin resource bundle [TS]
799800QIcon QgsGrassPlugin::getThemeIcon ( const QString theName )
800801{
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;
803804 if ( QFile::exists ( myPath ) )
804805 {
805806 return QIcon ( myPath );
You can’t perform that action at this time.
0 commit comments