Skip to content
Browse files
Fix unreported scratch layer icon not update after save
When saving a scratch layer to a persistent one the small icon
in the layer tree is not updated (it should disappear).
  • Loading branch information
elpaso authored and nyalldawson committed May 28, 2021
1 parent a1cdf7e commit 32995d50e23e11de98f6c6cf6509bbc4721fd818
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgisapp.cpp
@@ -8960,6 +8960,7 @@ void QgisApp::makeMemoryLayerPermanent( QgsVectorLayer *layer )
source += QStringLiteral( "|layername=%1" ).arg( newLayerName );
vl->setDataSource( source, vl->name(), QStringLiteral( "ogr" ), options );
mLayerTreeView->refreshLayerSymbology( vl->id() );
this->visibleMessageBar()->pushMessage( tr( "Layer Saved" ),
tr( "Successfully saved scratch layer to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( newFilename ).toString(), QDir::toNativeSeparators( newFilename ) ),
Qgis::Success, 0 );

0 comments on commit 32995d5

Please sign in to comment.