Skip to content

Commit 913527b

Browse files
committed
[bugfix] Fixes #16242 saves always with absolute paths
1 parent deb9667 commit 913527b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsproject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ QString QgsProject::writePath( const QString& src, const QString& relativeBasePa
15501550
QFileInfo srcFileInfo( src );
15511551
QFileInfo projFileInfo( fileName() );
15521552
QString srcPath = srcFileInfo.exists() ? srcFileInfo.canonicalFilePath() : src;
1553-
QString projPath = projFileInfo.canonicalFilePath();
1553+
QString projPath = projFileInfo.exists( ) ? projFileInfo.canonicalFilePath() : fileName();
15541554

15551555
if ( !relativeBasePath.isNull() )
15561556
{

0 commit comments

Comments
 (0)