Fixed issue #530 (events are mentioned as getters two times) (#531)

This commit is contained in:
Matthias Köfferlein 2020-04-05 15:11:18 +02:00 committed by GitHub
parent 2b3a53b285
commit 865076588b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2478,7 +2478,7 @@ PythonModule::make_classes (const char *mod_name)
// then add normal methods - on name clash with properties make them a getter
for (gsi::ClassBase::method_iterator m = (*c)->begin_methods (); m != (*c)->end_methods (); ++m) {
if (! (*m)->is_callback ()) {
if (! (*m)->is_callback () && ! (*m)->is_signal ()) {
for (gsi::MethodBase::synonym_iterator syn = (*m)->begin_synonyms (); syn != (*m)->end_synonyms (); ++syn) {
if (! syn->is_getter && ! syn->is_setter) {
if ((*m)->end_arguments () - (*m)->begin_arguments () == 0 && mt->find_property ((*m)->is_static (), syn->name).first) {