Skip to content
Permalink
Browse files

Use correct layer comparators when comparing layer sources in processing

Fixes #37394
  • Loading branch information
nyalldawson committed Jul 6, 2020
1 parent fe9f7e1 commit 398b55ec672c2fa4051b049204353a73549d3913
@@ -95,9 +95,9 @@ You can use QgsXmlUtils.readVariant to load it from an XML document.
.. versionadded:: 3.14
%End

bool operator==( const QgsProcessingFeatureSourceDefinition &other );
bool operator==( const QgsProcessingFeatureSourceDefinition &other ) const;

bool operator!=( const QgsProcessingFeatureSourceDefinition &other );
bool operator!=( const QgsProcessingFeatureSourceDefinition &other ) const;

operator QVariant() const;

@@ -162,7 +162,7 @@ class CORE_EXPORT QgsProcessingFeatureSourceDefinition
*/
bool loadVariant( const QVariantMap &map );

bool operator==( const QgsProcessingFeatureSourceDefinition &other )
bool operator==( const QgsProcessingFeatureSourceDefinition &other ) const
{
return source == other.source
&& selectedFeaturesOnly == other.selectedFeaturesOnly
@@ -171,7 +171,7 @@ class CORE_EXPORT QgsProcessingFeatureSourceDefinition
&& geometryCheck == other.geometryCheck;
}

bool operator!=( const QgsProcessingFeatureSourceDefinition &other )
bool operator!=( const QgsProcessingFeatureSourceDefinition &other ) const
{
return !( *this == other );
}
@@ -236,6 +236,8 @@ void QgsApplication::init( QString profileFolder )
qRegisterMetaType<QgsRemappingSinkDefinition>( "QgsRemappingSinkDefinition" );
qRegisterMetaType<QgsProcessingModelChildDependency>( "QgsProcessingModelChildDependency" );
QMetaType::registerComparators<QgsProcessingModelChildDependency>();
QMetaType::registerEqualsComparator<QgsProcessingFeatureSourceDefinition>();
QMetaType::registerEqualsComparator<QgsProperty>();

( void ) resolvePkgPath();

0 comments on commit 398b55e

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