Skip to content
Permalink
Browse files

Setting a flag, it's worth a break

  • Loading branch information
gacarrillor authored and nyalldawson committed Mar 4, 2020
1 parent d6821a9 commit 53f94bc8917c4723db149354eb8224aabc09c225
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -9675,7 +9675,10 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
|| ( field.constraints().constraints() & QgsFieldConstraints::ConstraintNotNull && field.constraints().constraintStrength( QgsFieldConstraints::ConstraintNotNull ) & QgsFieldConstraints::ConstraintStrengthHard )
|| ( field.constraints().constraints() & QgsFieldConstraints::ConstraintExpression && !field.constraints().constraintExpression().isEmpty() && field.constraints().constraintStrength( QgsFieldConstraints::ConstraintExpression ) & QgsFieldConstraints::ConstraintStrengthHard )
)
{
hasStrongConstraints = true;
break;
}
}

if ( hasStrongConstraints )

0 comments on commit 53f94bc

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