Skip to content
Permalink
Browse files

Fix bad merge pt 2

  • Loading branch information
nyalldawson committed Aug 3, 2018
1 parent f46c713 commit 56024af2c7dfefff70e9d9daa1d1a72b768b5089
Showing with 3 additions and 10 deletions.
  1. +3 −10 src/app/qgisapp.cpp
@@ -7463,17 +7463,10 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer *vlayer, bool symbologyOpt
} );

// when an error occurs:
connect( writerTask, &QgsVectorFileWriterTask::errorOccurred, this, [ = ]( int error, const QString & errorMessage )
connect( writerTask, &QgsVectorFileWriterTask::errorOccurred, this, [onFailure]( int error, const QString & errorMessage )
{
if ( error != QgsVectorFileWriter::Canceled )
{
QgsMessageViewer *m = new QgsMessageViewer( nullptr );
m->setWindowTitle( tr( "Save Error" ) );
m->setMessageAsPlainText( tr( "Export to vector file failed.\nError: %1" ).arg( errorMessage ) );
m->exec();
}
}
);
onFailure( error, errorMessage );
} );

QgsApplication::taskManager()->addTask( writerTask );
}

0 comments on commit 56024af

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