mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-26 09:28:11 +03:00
1.4.3
This commit is contained in:
commit
727b6c9436
@ -1086,24 +1086,49 @@ void DataSourceManager::collectionLoadFinished(const QString &collectionName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (collectionName.compare("queries",Qt::CaseInsensitive) == 0){
|
if (collectionName.compare("queries",Qt::CaseInsensitive) == 0){
|
||||||
foreach(QueryDesc* query,m_queries){
|
|
||||||
connect(query, SIGNAL(queryTextChanged(QString,QString)),
|
QMutableListIterator<QueryDesc*> it(m_queries);
|
||||||
|
while (it.hasNext()){
|
||||||
|
it.next();
|
||||||
|
if (!m_datasources.contains(it.value()->queryName().toLower())){
|
||||||
|
connect(it.value(), SIGNAL(queryTextChanged(QString,QString)),
|
||||||
this, SLOT(slotQueryTextChanged(QString,QString)));
|
this, SLOT(slotQueryTextChanged(QString,QString)));
|
||||||
putHolder(query->queryName(),new QueryHolder(query->queryText(), query->connectionName(), this));
|
putHolder(it.value()->queryName(),new QueryHolder(it.value()->queryText(), it.value()->connectionName(), this));
|
||||||
|
} else {
|
||||||
|
delete it.value();
|
||||||
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (collectionName.compare("subqueries",Qt::CaseInsensitive) == 0){
|
if (collectionName.compare("subqueries",Qt::CaseInsensitive) == 0){
|
||||||
foreach(SubQueryDesc* query,m_subqueries){
|
|
||||||
connect(query, SIGNAL(queryTextChanged(QString,QString)),
|
QMutableListIterator<SubQueryDesc*> it(m_subqueries);
|
||||||
|
while (it.hasNext()){
|
||||||
|
it.next();
|
||||||
|
if (!m_datasources.contains(it.value()->queryName().toLower())){
|
||||||
|
connect(it.value(), SIGNAL(queryTextChanged(QString,QString)),
|
||||||
this, SLOT(slotQueryTextChanged(QString,QString)));
|
this, SLOT(slotQueryTextChanged(QString,QString)));
|
||||||
putHolder(query->queryName(),new SubQueryHolder(query->queryText(), query->connectionName(), query->master(), this));
|
putHolder(it.value()->queryName(),new QueryHolder(it.value()->queryText(), it.value()->connectionName(), this));
|
||||||
|
} else {
|
||||||
|
delete it.value();
|
||||||
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (collectionName.compare("subproxies",Qt::CaseInsensitive) == 0){
|
if (collectionName.compare("subproxies",Qt::CaseInsensitive) == 0){
|
||||||
foreach(ProxyDesc* proxy,m_proxies){
|
QMutableListIterator<ProxyDesc*> it(m_proxies);
|
||||||
putHolder(proxy->name(),new ProxyHolder(proxy, this));
|
while (it.hasNext()){
|
||||||
|
it.next();
|
||||||
|
if (!m_datasources.contains(it.value()->name().toLower())){
|
||||||
|
putHolder(it.value()->name(),new ProxyHolder(it.value(), this));
|
||||||
|
} else {
|
||||||
|
delete it.value();
|
||||||
|
it.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user