small fix
This commit is contained in:
parent
b7dc98aefa
commit
d49d205d76
|
@ -483,15 +483,15 @@ void Manager::initAlpmDataBases()
|
||||||
if(localDatabase()) {
|
if(localDatabase()) {
|
||||||
QObject::connect(localDatabase(), &AlpmDatabase::initialized, bind(&Manager::computeRequiredBy, this, localDatabase()));
|
QObject::connect(localDatabase(), &AlpmDatabase::initialized, bind(&Manager::computeRequiredBy, this, localDatabase()));
|
||||||
}
|
}
|
||||||
for(auto &syncDbEntry : m_syncDbMap) {
|
for(auto &syncDb : m_syncDbs) {
|
||||||
QObject::connect(syncDbEntry.second, &AlpmDatabase::initialized, bind(&Manager::computeRequiredBy, this, syncDbEntry.second));
|
QObject::connect(syncDb.get(), &AlpmDatabase::initialized, bind(&Manager::computeRequiredBy, this, syncDb.get()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(localDatabase()) {
|
if(localDatabase()) {
|
||||||
QObject::connect(localDatabase(), &AlpmDatabase::initialized, this, &Manager::emitUpdatesAvailable);
|
QObject::connect(localDatabase(), &AlpmDatabase::initialized, this, &Manager::emitUpdatesAvailable);
|
||||||
}
|
}
|
||||||
for(auto &syncDbEntry : m_syncDbMap) {
|
for(auto &syncDb : m_syncDbs) {
|
||||||
QObject::connect(syncDbEntry.second, &AlpmDatabase::initialized, this, &Manager::emitUpdatesAvailable);
|
QObject::connect(syncDb.get(), &AlpmDatabase::initialized, this, &Manager::emitUpdatesAvailable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,7 +527,7 @@ void Manager::initAlpmDataBases()
|
||||||
cerr << endl << shchar << "Unable to initialize ALPM database [" << loader->database()->name().toLocal8Bit().data() << "]" << endl;
|
cerr << endl << shchar << "Unable to initialize ALPM database [" << loader->database()->name().toLocal8Bit().data() << "]" << endl;
|
||||||
// TODO: print the cause of the problem
|
// TODO: print the cause of the problem
|
||||||
}
|
}
|
||||||
delete loader;
|
//delete loader; the repo has ownership
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(m_config.isVerbose() || m_config.runServer()) {
|
if(m_config.isVerbose() || m_config.runServer()) {
|
||||||
|
|
Loading…
Reference in New Issue