Skip to content
Permalink
Browse files
Support for themes in grass toolbox fix
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 ed991eca3b11b374f508f633a575e41b2a4cd6ae
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/plugins/grass/qgsgrassplugin.cpp
@@ -37,6 +37,7 @@
#include "qgsvectorlayer.h"

#include <QAction>
#include <QDir>
#include <QFileInfo>
#include <QMessageBox>
#include <QSettings>
@@ -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 );

0 comments on commit ed991ec

Please sign in to comment.