Skip to content

Commit 5b020a2

Browse files
committed
just give all filters their own generator thingy and itll work fine
1 parent 8026c10 commit 5b020a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CommonData/filter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Filter::Filter(DataSet * data, const std::string & name, bool createIfMissing)
3636
else throw std::runtime_error("Filter by name '" + _name + "' but it doesnt exist and createIfMissing=false!\nAre you sure this filter should exist?");
3737

3838
connectionCreation();
39+
_labelGen = new LabelFilterGenerator(this);
3940
}
4041

4142

@@ -286,6 +287,8 @@ void Filter::setConstructorJson(const std::string &constructorJson)
286287
rescanForColumns();
287288

288289
dbUpdate();
290+
291+
289292

290293
if(wasChange)
291294
{
@@ -453,9 +456,6 @@ QVariant Filter::data(const QModelIndex &index, int role) const
453456

454457
const std::string &Filter::generatedFilter() const
455458
{
456-
if(_data->defaultFilter() != this)
457-
return _data->defaultFilter()->generatedFilter();
458-
459459
return _generatedFilter;
460460
}
461461

0 commit comments

Comments
 (0)