mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
add note that duplicated layers use the same data source (fixes #19489)
This commit is contained in:
parent
031acd0dd3
commit
f14ae4602e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user