Skip to content

Commit

Permalink
Register QgsFeatureIds metatype
Browse files Browse the repository at this point in the history
Fixes warnings when using signals which use this type, like
QgsVectorLayer::selectionChanged
  • Loading branch information
nyalldawson committed Aug 5, 2017
1 parent 04059eb commit 16629b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsapplication.cpp
Expand Up @@ -147,6 +147,7 @@ void QgsApplication::init( QString profileFolder )
qRegisterMetaType<QgsProcessingFeatureSourceDefinition>( "QgsProcessingFeatureSourceDefinition" );
qRegisterMetaType<QgsProcessingOutputLayerDefinition>( "QgsProcessingOutputLayerDefinition" );
qRegisterMetaType<QgsUnitTypes::LayoutUnit>( "QgsUnitTypes::LayoutUnit" );
qRegisterMetaType<QgsFeatureIds>( "QgsFeatureIds" );

QString prefixPath( getenv( "QGIS_PREFIX_PATH" ) ? getenv( "QGIS_PREFIX_PATH" ) : applicationDirPath() );
// QgsDebugMsg( QString( "prefixPath(): %1" ).arg( prefixPath ) );
Expand Down

0 comments on commit 16629b4

Please sign in to comment.