Skip to content
Permalink
Browse files

[layouts] use a success message bar item when exporting

  • Loading branch information
nirvn committed Dec 22, 2017
1 parent 1a40717 commit d1dd732a9ec8dfe5c8aa35e9ca238fd6662a552d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -1538,7 +1538,7 @@ void QgsLayoutDesignerDialog::exportToRaster()
case QgsLayoutExporter::Success:
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( fi.path() ).toString(), fileNExt.first ),
QgsMessageBar::INFO, 0 );
QgsMessageBar::SUCCESS, 0 );
break;

case QgsLayoutExporter::PrintError:
@@ -1644,7 +1644,7 @@ void QgsLayoutDesignerDialog::exportToPdf()
{
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( fi.path() ).toString(), outputFileName ),
QgsMessageBar::INFO, 0 );
QgsMessageBar::SUCCESS, 0 );
break;
}

@@ -1794,7 +1794,7 @@ void QgsLayoutDesignerDialog::exportToSvg()
{
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( fi.path() ).toString(), outputFileName ),
QgsMessageBar::INFO, 0 );
QgsMessageBar::SUCCESS, 0 );
break;
}

0 comments on commit d1dd732

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