Skip to content

Commit

Permalink
Fix unreported scratch layer icon not update after save
Browse files Browse the repository at this point in the history
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 32995d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -8960,6 +8960,7 @@ void QgisApp::makeMemoryLayerPermanent( QgsVectorLayer *layer )
source += QStringLiteral( "|layername=%1" ).arg( newLayerName );
vl->setDataSource( source, vl->name(), QStringLiteral( "ogr" ), options );
vl->triggerRepaint();
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 );
Expand Down

0 comments on commit 32995d5

Please sign in to comment.