Skip to content

Commit

Permalink
Remove addSmartGroup from Python bindings -- it causes a crash in sip
Browse files Browse the repository at this point in the history
and CANNOT be made functional
  • Loading branch information
nyalldawson committed Sep 12, 2018
1 parent adc31bb commit c41af12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions python/core/auto_generated/symbology/qgsstyle.sip.in
Expand Up @@ -85,14 +85,6 @@ Adds a new tag and returns the tag's id
:return: returns an int, which is the DB id of the new tag created, 0 if the tag couldn't be created
%End

int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
%Docstring
Adds a new smartgroup to the database and returns the id

:param name: is the name of the new Smart Group to be added
:param op: is the operator between the conditions; AND/OR as QString
:param conditions: are the smart group conditions
%End

QStringList tags() const;
%Docstring
Expand Down
4 changes: 3 additions & 1 deletion src/core/symbology/qgsstyle.h
Expand Up @@ -135,8 +135,10 @@ class CORE_EXPORT QgsStyle : public QObject
* \param name is the name of the new Smart Group to be added
* \param op is the operator between the conditions; AND/OR as QString
* \param conditions are the smart group conditions
*
* \note Not available from Python bindings
*/
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions );
int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;

/**
* Returns a list of all tags in the style database
Expand Down

0 comments on commit c41af12

Please sign in to comment.