Skip to content

Commit

Permalink
Support for themes in grass toolbox fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9872 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Dec 20, 2008
1 parent 79135d4 commit ed991ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -37,6 +37,7 @@
#include "qgsvectorlayer.h"

#include <QAction>
#include <QDir>
#include <QFileInfo>
#include <QMessageBox>
#include <QSettings>
Expand Down Expand Up @@ -798,8 +799,8 @@ void QgsGrassPlugin::unload()
// the GRASS plugin resource bundle [TS]
QIcon QgsGrassPlugin::getThemeIcon( const QString theName )
{
QString myPath = ":/" + QgsApplication::themeName() + "/grass/" + theName;
QString myDefaultPath = ":/default/grass/" + theName;
QString myPath = QgsApplication::activeThemePath() + QDir::separator() + "grass" + QDir::separator() + theName;
QString myDefaultPath = QgsApplication::defaultThemePath() + QDir::separator() + "grass" + QDir::separator() + theName;
if ( QFile::exists( myPath ) )
{
return QIcon( myPath );
Expand Down

0 comments on commit ed991ec

Please sign in to comment.