Skip to content

Commit

Permalink
create vector joins only once for a duplicated layer (fixes #14298)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebDieBln committed Feb 19, 2016
1 parent 1e80a98 commit 7431ec6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7431ec6

Please sign in to comment.