Skip to content

Commit f14ae46

Browse files
committed
add note that duplicated layers use the same data source (fixes #19489)
1 parent 031acd0 commit f14ae46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9645,9 +9645,14 @@ void QgisApp::duplicateLayers( const QList<QgsMapLayer *> &lyrList )
96459645
messageBar()->pushMessage( errMsg,
96469646
tr( "Cannot copy style to duplicated layer." ),
96479647
Qgis::Critical, messageTimeout() );
9648+
else if ( qobject_cast<QgsVectorLayer *>( dupLayer ) )
9649+
messageBar()->pushMessage( tr( "Layer duplication complete" ),
9650+
tr( "Note that it's using the same data source." ),
9651+
Qgis::Info, messageTimeout() );
96489652

96499653
if ( !newSelection )
96509654
newSelection = dupLayer;
9655+
96519656
}
96529657

96539658
dupLayer = nullptr;

0 commit comments

Comments
 (0)