Skip to content

Commit

Permalink
add note that duplicated layers use the same data source (fixes #19489)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 26, 2018
1 parent 031acd0 commit f14ae46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9645,9 +9645,14 @@ void QgisApp::duplicateLayers( const QList<QgsMapLayer *> &lyrList )
messageBar()->pushMessage( errMsg,
tr( "Cannot copy style to duplicated layer." ),
Qgis::Critical, messageTimeout() );
else if ( qobject_cast<QgsVectorLayer *>( dupLayer ) )
messageBar()->pushMessage( tr( "Layer duplication complete" ),
tr( "Note that it's using the same data source." ),
Qgis::Info, messageTimeout() );

if ( !newSelection )
newSelection = dupLayer;

}

dupLayer = nullptr;
Expand Down

0 comments on commit f14ae46

Please sign in to comment.