Switch to unified view

a/src/qtgui/guiutils.cpp b/src/qtgui/guiutils.cpp
...
...
301
        }
301
        }
302
        prefs.allExtraDbs.push_back(dbdir);
302
        prefs.allExtraDbs.push_back(dbdir);
303
        }
303
        }
304
    }
304
    }
305
305
306
        //Get the "active external indexes":
306
        // Get the remembered "active external indexes":
307
        prefs.activeExtraDbs = g_dynconf->getStringList(actEdbsSk);
307
        prefs.activeExtraDbs = g_dynconf->getStringList(actEdbsSk);
308
309
  // Clean up the list: remove directories which are not
310
  // actually there: useful for removable volumes.
311
  for (list<string>::iterator it = prefs.activeExtraDbs.begin();
312
       it != prefs.activeExtraDbs.end();) {
313
      if (!Rcl::Db::testDbDir(*it)) {
314
      LOGINFO(("Not a xapian index: [%s]\n", it->c_str()));
315
      it = prefs.activeExtraDbs.erase(it);
316
      } else {
317
      it++;
318
      }
319
  }
320
321
  // Get active db directives from the environment. This can only add to
322
  // the remembered and cleaned up list
308
        const char *cp4Act;
323
        const char *cp4Act;
309
        if ((cp4Act = getenv("RECOLL_ACTIVE_EXTRA_DBS")) != 0) {
324
        if ((cp4Act = getenv("RECOLL_ACTIVE_EXTRA_DBS")) != 0) {
310
            vector<string> dbl;
325
            vector<string> dbl;
311
            stringToTokens(cp4Act, dbl, ":");
326
            stringToTokens(cp4Act, dbl, ":");
312
            for (vector<string>::iterator dit = dbl.begin(); dit != dbl.end();
327
            for (vector<string>::iterator dit = dbl.begin(); dit != dbl.end();
...
...
323
                }
338
                }
324
                prefs.activeExtraDbs.push_back(dbdir);
339
                prefs.activeExtraDbs.push_back(dbdir);
325
            } //for
340
            } //for
326
        } //if
341
        } //if
327
    }
342
    }
343
328
#if 0
344
#if 0
329
    {
345
    {
330
    list<string>::const_iterator it;
346
    list<string>::const_iterator it;
331
    fprintf(stderr, "All extra Dbs:\n");
347
    fprintf(stderr, "All extra Dbs:\n");
332
    for (it = prefs.allExtraDbs.begin(); 
348
    for (it = prefs.allExtraDbs.begin();