|
a/src/qtgui/guiutils.cpp |
|
b/src/qtgui/guiutils.cpp |
|
... |
|
... |
206 |
}
|
206 |
}
|
207 |
} else {
|
207 |
} else {
|
208 |
prefs.allExtraDbs = g_dynconf->getStringList(allEdbsSk);
|
208 |
prefs.allExtraDbs = g_dynconf->getStringList(allEdbsSk);
|
209 |
const char *cp;
|
209 |
const char *cp;
|
210 |
if ((cp = getenv("RECOLL_EXTRA_DBS")) != 0) {
|
210 |
if ((cp = getenv("RECOLL_EXTRA_DBS")) != 0) {
|
211 |
list<string> dbl;
|
211 |
vector<string> dbl;
|
212 |
stringToTokens(cp, dbl, ":");
|
212 |
stringToTokens(cp, dbl, ":");
|
213 |
for (list<string>::iterator dit = dbl.begin(); dit != dbl.end();
|
213 |
for (vector<string>::iterator dit = dbl.begin(); dit != dbl.end();
|
214 |
dit++) {
|
214 |
dit++) {
|
215 |
string dbdir = path_canon(*dit);
|
215 |
string dbdir = path_canon(*dit);
|
216 |
path_catslash(dbdir);
|
216 |
path_catslash(dbdir);
|
217 |
if (std::find(prefs.allExtraDbs.begin(),
|
217 |
if (std::find(prefs.allExtraDbs.begin(),
|
218 |
prefs.allExtraDbs.end(), dbdir) !=
|
218 |
prefs.allExtraDbs.end(), dbdir) !=
|