Skip to content

Commit

Permalink
fix #3745
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15726 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 16, 2011
1 parent f80ef4a commit e975603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e975603

Please sign in to comment.