Skip to content
Permalink
Browse files

[layouts] Fix incorrect path shown after export atlas to pdf

Fixes #19013
  • Loading branch information
nyalldawson committed May 24, 2018
1 parent e906a2c commit dde895d14964897a0701ee489e44f41c59c32619
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -2755,6 +2755,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()

QString outputFileName;
QgsSettings settings;
QString dir;
if ( singleFile )
{
QString lastUsedFile = settings.value( QStringLiteral( "lastSaveAsPdfFile" ), QStringLiteral( "qgis.pdf" ), QgsSettings::App ).toString();
@@ -2820,7 +2821,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
{
return;
}
QString dir = files.at( 0 );
dir = files.at( 0 );
if ( dir.isEmpty() )
{
return;
@@ -2900,7 +2901,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
else
{
mMessageBar->pushMessage( tr( "Export atlas" ),
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), QDir::toNativeSeparators( outputFileName ) ),
tr( "Successfully exported atlas to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( dir ).toString(), QDir::toNativeSeparators( dir ) ),
Qgis::Success, 0 );
}
break;

0 comments on commit dde895d

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