Skip to content
Permalink
Browse files

create vector joins only once for a duplicated layer (fixes #14298)

  • Loading branch information
SebDieBln committed Feb 19, 2016
1 parent 1e80a98 commit 7431ec6528e178a15fbc678f37858dcda5f951a0
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/app/qgisapp.cpp
@@ -7886,16 +7886,6 @@ void QgisApp::duplicateLayers( const QList<QgsMapLayer *>& lyrList )
messageBar()->pushMessage( errMsg,
tr( "Cannot copy style to duplicated layer." ),
QgsMessageBar::CRITICAL, messageTimeout() );

QgsVectorLayer* vLayer = dynamic_cast<QgsVectorLayer*>( selectedLyr );
QgsVectorLayer* vDupLayer = dynamic_cast<QgsVectorLayer*>( dupLayer );
if ( vLayer && vDupLayer )
{
Q_FOREACH ( const QgsVectorJoinInfo& join, vLayer->vectorJoins() )
{
vDupLayer->addJoin( join );
}
}
}

dupLayer = nullptr;

0 comments on commit 7431ec6

Please sign in to comment.
You can’t perform that action at this time.