Skip to content

Commit 7431ec6

Browse files
committed
create vector joins only once for a duplicated layer (fixes #14298)
1 parent 1e80a98 commit 7431ec6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/app/qgisapp.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -7886,16 +7886,6 @@ void QgisApp::duplicateLayers( const QList<QgsMapLayer *>& lyrList )
78867886
messageBar()->pushMessage( errMsg,
78877887
tr( "Cannot copy style to duplicated layer." ),
78887888
QgsMessageBar::CRITICAL, messageTimeout() );
7889-
7890-
QgsVectorLayer* vLayer = dynamic_cast<QgsVectorLayer*>( selectedLyr );
7891-
QgsVectorLayer* vDupLayer = dynamic_cast<QgsVectorLayer*>( dupLayer );
7892-
if ( vLayer && vDupLayer )
7893-
{
7894-
Q_FOREACH ( const QgsVectorJoinInfo& join, vLayer->vectorJoins() )
7895-
{
7896-
vDupLayer->addJoin( join );
7897-
}
7898-
}
78997889
}
79007890

79017891
dupLayer = nullptr;

0 commit comments

Comments
 (0)