Skip to content

Commit

Permalink
Don't show password information in legend layer file
Browse files Browse the repository at this point in the history
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 623e7e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/legend/qgslegendlayerfile.cpp
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down

0 comments on commit 623e7e8

Please sign in to comment.