Skip to content
Permalink
Browse files
Don't show password information in legend layer file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9680 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 21, 2008
1 parent 74ff627 commit a4400fd56d98cf97830d61207559b235ca01db88
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/legend/qgslegendlayerfile.cpp
@@ -165,7 +165,7 @@ void QgsLegendLayerFile::setIconAppearance( bool isInOverview,

QString QgsLegendLayerFile::nameFromLayer( QgsMapLayer* layer )
{
QString sourcename = layer->source(); //todo: move this duplicated code into a new function
QString sourcename = layer->publicSource(); //todo: move this duplicated code into a new function
if ( sourcename.startsWith( "host", Qt::CaseInsensitive ) )
{
//this layer is a database layer
@@ -175,7 +175,7 @@ QString QgsLegendLayerFile::nameFromLayer( QgsMapLayer* layer )
else
{
//modify source name such that only the file is visible
sourcename = layer->source().section( '/', -1, -1 );
sourcename = layer->publicSource().section( '/', -1, -1 );
}
return sourcename;
}

0 comments on commit a4400fd

Please sign in to comment.