Skip to content

Commit

Permalink
[layouts] use a success message bar item when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 22, 2017
1 parent 1a40717 commit d1dd732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit d1dd732

Please sign in to comment.