add note that duplicated layers use the same data source (fixes #19489)

This commit is contained in:
Juergen E. Fischer 2018-07-26 22:01:32 +02:00
parent 031acd0dd3
commit f14ae4602e

View File

@ -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;