Skip to content
Permalink
Browse files

Merge pull request #2816 from SebDieBln/FixDuplicateJoins

[Bugfix] create vector joins only once for a duplicated layer (fixes #14298)
  • Loading branch information
m-kuhn committed Feb 20, 2016
2 parents 07240e3 + 7431ec6 commit 0c0d72bb0356f078807eefcc02f81e2e4e6585bf
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 0c0d72b

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