We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e3faf7 commit 57b5eb9Copy full SHA for 57b5eb9
src/app/qgisapp.cpp
@@ -7812,6 +7812,15 @@ void QgisApp::duplicateLayers( const QList<QgsMapLayer *>& lyrList )
7812
QgsExpressionContextUtils::setLayerVariable( dupVLayer, variableName, varValue );
7813
}
7814
7815
+ Q_FOREACH ( const QgsVectorJoinInfo& join, vlayer->vectorJoins() )
7816
+ dupVLayer->addJoin( join );
7817
+
7818
+ for ( int fld = 0; fld < vlayer->fields().count(); fld++ )
7819
+ {
7820
+ if ( vlayer->fields().fieldOrigin( fld ) == QgsFields::OriginExpression )
7821
+ dupVLayer->addExpressionField( vlayer->expressionField( fld ), vlayer->fields().at( fld ) );
7822
+ }
7823
7824
dupLayer = dupVLayer;
7825
7826
0 commit comments