Skip to content

Commit 157a624

Browse files
committed
[layouts] Fix filename links in message bar
1 parent c7a076a commit 157a624

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/layout/qgslayoutdesignerdialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ void QgsLayoutDesignerDialog::exportToSvg()
20832083
case QgsLayoutExporter::Success:
20842084
{
20852085
mMessageBar->pushMessage( tr( "Export layout" ),
2086-
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
2086+
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
20872087
Qgis::Success, 0 );
20882088
break;
20892089
}
@@ -2890,7 +2890,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
28902890
if ( singleFile )
28912891
{
28922892
mMessageBar->pushMessage( tr( "Export atlas" ),
2893-
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
2893+
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
28942894
Qgis::Success, 0 );
28952895
}
28962896
else
@@ -3249,7 +3249,7 @@ void QgsLayoutDesignerDialog::exportReportToPdf()
32493249
case QgsLayoutExporter::Success:
32503250
{
32513251
mMessageBar->pushMessage( tr( "Export report" ),
3252-
tr( "Successfully exported report to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
3252+
tr( "Successfully exported report to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
32533253
Qgis::Success, 0 );
32543254
break;
32553255
}

0 commit comments

Comments
 (0)