Skip to content
Permalink
Browse files

[layouts] Fix filename links in message bar

  • Loading branch information
nyalldawson committed Aug 7, 2018
1 parent c7a076a commit 157a624e0e0553ba9341c6b01307b33562982469
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -2083,7 +2083,7 @@ void QgsLayoutDesignerDialog::exportToSvg()
case QgsLayoutExporter::Success:
{
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
Qgis::Success, 0 );
break;
}
@@ -2890,7 +2890,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
if ( singleFile )
{
mMessageBar->pushMessage( tr( "Export atlas" ),
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
Qgis::Success, 0 );
}
else
@@ -3249,7 +3249,7 @@ void QgsLayoutDesignerDialog::exportReportToPdf()
case QgsLayoutExporter::Success:
{
mMessageBar->pushMessage( tr( "Export report" ),
tr( "Successfully exported report to <a href=\"%1\">%2</a>" ).arg( outputFileName, QDir::toNativeSeparators( outputFileName ) ),
tr( "Successfully exported report to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
Qgis::Success, 0 );
break;
}

0 comments on commit 157a624

Please sign in to comment.
You can’t perform that action at this time.