gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

Problem with filters #246

Closed gkunter closed 7 years ago

gkunter commented 7 years ago

Testcase: Buckeye corpus, query string filed, function MATCH(Transcript,"AH"), output Transcript and the function. A combination of two filters doesn't work:

Working:

Combination of both doesn't work:

AttributeError  'NoneType' object has no attribute 'objectName'

Trace 
Function manage_filters() in coquery/gui/app.py, line 1590:
  Function set_filters() in coquery/gui/addfilters.py, line 292:
    Function exec_() in coquery/gui/addfilters.py, line 278:

      > filt = self.ui.table_filters.item(0, i).objectName()
gkunter commented 7 years ago

This is probably due to how filters are linked to the list widget entries: the dialog uses the objectName property of list entries to store the filters. This needs revision; probably the filter should be stored as data.