a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
605
        return;
605
        return;
606
    }
606
    }
607
    }
607
    }
608
608
609
    LOGDEB(("ExtraDbDial: got: [%s]\n", dbdir.c_str()));
609
    LOGDEB(("ExtraDbDial: got: [%s]\n", dbdir.c_str()));
610
    path_catslash(dbdir);
611
    bool stripped;
610
    bool stripped;
612
    if (!Rcl::Db::testDbDir(dbdir, &stripped)) {
611
    if (!Rcl::Db::testDbDir(dbdir, &stripped)) {
613
    QMessageBox::warning(0, "Recoll", 
612
    QMessageBox::warning(0, "Recoll", 
614
        tr("The selected directory does not appear to be a Xapian index"));
613
        tr("The selected directory does not appear to be a Xapian index"));
615
    return;
614
    return;
...
...
640
    QListWidgetItem *item = 
639
    QListWidgetItem *item = 
641
    new QListWidgetItem(QString::fromLocal8Bit(dbdir.c_str()), idxLV);
640
    new QListWidgetItem(QString::fromLocal8Bit(dbdir.c_str()), idxLV);
642
    item->setCheckState(Qt::Checked);
641
    item->setCheckState(Qt::Checked);
643
    idxLV->sortItems();
642
    idxLV->sortItems();
644
}
643
}
644