Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
531
    }
531
    }
532
    }
532
    }
533
533
534
    LOGDEB(("ExtraDbDial: got: [%s]\n", dbdir.c_str()));
534
    LOGDEB(("ExtraDbDial: got: [%s]\n", dbdir.c_str()));
535
    path_catslash(dbdir);
535
    path_catslash(dbdir);
536
    bool stripped;
536
    if (!Rcl::Db::testDbDir(dbdir)) {
537
    if (!Rcl::Db::testDbDir(dbdir, &stripped)) {
537
    QMessageBox::warning(0, "Recoll", 
538
    QMessageBox::warning(0, "Recoll", 
538
        tr("The selected directory does not appear to be a Xapian index"));
539
        tr("The selected directory does not appear to be a Xapian index"));
540
  return;
541
    }
542
    if (o_index_stripchars != stripped) {
543
  QMessageBox::warning(0, "Recoll", 
544
               tr("Cant add index with different case/diacritics"
545
              " stripping option"));
539
    return;
546
    return;
540
    }
547
    }
541
    if (samedir(dbdir, theconfig->getDbDir())) {
548
    if (samedir(dbdir, theconfig->getDbDir())) {
542
    QMessageBox::warning(0, "Recoll", 
549
    QMessageBox::warning(0, "Recoll", 
543
                 tr("This is the main/local index!"));
550
                 tr("This is the main/local index!"));