Skip to content

Commit

Permalink
Fix crash on Qt >= 5.14
Browse files Browse the repository at this point in the history
Master only
  • Loading branch information
nyalldawson committed Nov 24, 2020
1 parent b89d7fd commit 85094ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -589,7 +589,8 @@ QStringList QgsProcessingParameters::parameterAsEnumStrings( const QgsProcessing
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QSet<QString> subtraction = enumValues.toSet().subtract( enumDef->options().toSet() );
#else
QSet<QString> subtraction = QSet<QString>( enumValues.begin(), enumValues.end() ).subtract( QSet<QString>( enumDef->options().begin(), enumDef->options().end() ) );
const QStringList options = enumDef->options();
QSet<QString> subtraction = QSet<QString>( enumValues.begin(), enumValues.end() ).subtract( QSet<QString>( options.begin(), options.end() ) );
#endif

if ( enumValues.isEmpty() || !subtraction.isEmpty() )
Expand Down

0 comments on commit 85094ac

Please sign in to comment.