Skip to content
Permalink
Browse files
fix #3745
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15726 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 16, 2011
1 parent c65f15a commit f861f8b8bddb1f6967c4f1c89bee17845f95b228
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgsmaplayer.cpp
  2. +1 −1 src/core/qgsproject.cpp
@@ -180,7 +180,7 @@ bool QgsMapLayer::readXML( QDomNode & layer_node )
{
QUrl urlSource = QUrl::fromEncoded( mDataSource.toAscii() );

if ( !mDataSource.startsWith( "file://" ) )
if ( !mDataSource.startsWith( "file:" ) )
{
QUrl file = QUrl::fromLocalFile( mDataSource.left( mDataSource.indexOf( "?" ) ) );
urlSource.setScheme( "file" );
@@ -1438,7 +1438,7 @@ QString QgsProject::readPath( QString src ) const
// return the absolute or relative path to write it to the project file
QString QgsProject::writePath( QString src ) const
{
if ( readBoolEntry( "Paths", "/Absolute", true ) )
if ( readBoolEntry( "Paths", "/Absolute", true ) || src.isEmpty() )
{
return src;
}

0 comments on commit f861f8b

Please sign in to comment.