Skip to content
Permalink
Browse files

Use messagebar instead of messagebox for animation export reports

  • Loading branch information
nyalldawson authored and nirvn committed May 17, 2020
1 parent f2b6ca9 commit efecc6f46c990b99540e74193c4ea09d15bea7f4
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/qgstemporalcontrollerdockwidget.cpp
@@ -24,6 +24,7 @@
#include "qgstemporalutils.h"
#include "qgstaskmanager.h"
#include "qgsproxyprogresstask.h"
#include "qgsmessagebar.h"

#include <QProgressDialog>
#include <QMessageBox>
@@ -96,7 +97,13 @@ void QgsTemporalControllerDockWidget::exportAnimation()
progressDialog.hide();
if ( !success )
{
QMessageBox::warning( this, tr( "Export Animation" ), error );
QgisApp::instance()->messageBar()->pushMessage( tr( "Export Animation" ), error, Qgis::Critical );
}
else
{
QgisApp::instance()->messageBar()->pushMessage( tr( "Export Animation" ),
tr( "Successfully exported animation to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputDir ).toString(), QDir::toNativeSeparators( outputDir ) ),
Qgis::Success, 0 );
}
} );
dlg->setAttribute( Qt::WA_DeleteOnClose );

0 comments on commit efecc6f

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