Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
10 deletions.
-
+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 ); |
|
|
} |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.