Skip to content

Commit aeb7f65

Browse files
author
borysiasty
committed
Support for themes in grass toolbox fix
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9873 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b5f462a commit aeb7f65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/grass/qgsgrassplugin.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
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]
799800
QIcon 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 );

0 commit comments

Comments
 (0)