mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
ConfigChanged Part 1 of 3
.. introduce concept of configChanged(what) to pass details of what config has been changed .. fixed zones changes to re-read after write to correct the save twice to get changes to zones bug. .. next parts need to spot changes (part 2) and then action appropriately (part 3)
This commit is contained in:
@@ -241,8 +241,8 @@ void Leaf::validateFilter(DataFilter *df, Leaf *leaf)
|
||||
|
||||
DataFilter::DataFilter(QObject *parent, Context *context) : QObject(parent), context(context), treeRoot(NULL)
|
||||
{
|
||||
configUpdate();
|
||||
connect(context, SIGNAL(configChanged()), this, SLOT(configUpdate()));
|
||||
configChanged(CONFIG_FIELDS);
|
||||
connect(context, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));
|
||||
}
|
||||
|
||||
QStringList DataFilter::parseFilter(QString query, QStringList *list)
|
||||
@@ -307,7 +307,7 @@ void DataFilter::clearFilter()
|
||||
}
|
||||
}
|
||||
|
||||
void DataFilter::configUpdate()
|
||||
void DataFilter::configChanged(qint32)
|
||||
{
|
||||
lookupMap.clear();
|
||||
lookupType.clear();
|
||||
|
||||
Reference in New Issue
Block a user