Skip to content
Permalink
Browse files
Don't show password information in legend layer file
git-svn-id: http://svn.osgeo.org/qgis/trunk@9680 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 21, 2008
1 parent 6a85e1a commit 623e7e824a9c666a7737015814470e4f505c665d
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 623e7e8

Please sign in to comment.