Switch to unified view

a/src/qtgui/main.cpp b/src/qtgui/main.cpp
...
...
120
    LOGDEB(("main: adding [%s]\n", it->c_str()));
120
    LOGDEB(("main: adding [%s]\n", it->c_str()));
121
    rcldb->addQueryDb(*it);
121
    rcldb->addQueryDb(*it);
122
    }
122
    }
123
    Rcl::Db::OpenError error;
123
    Rcl::Db::OpenError error;
124
    if (!rcldb->isopen() && !rcldb->open(Rcl::Db::DbRO, &error)) {
124
    if (!rcldb->isopen() && !rcldb->open(Rcl::Db::DbRO, &error)) {
125
    reason = "Could not open database in " + 
125
    reason = "Could not open database";
126
      theconfig->getDbDir() + " wait for indexing to complete?";
127
    if (maindberror) {
126
    if (maindberror) {
127
      reason +=  " in " +  theconfig->getDbDir() + 
128
      " wait for indexing to complete?";      
128
        *maindberror = (error == Rcl::Db::DbOpenMainDb) ? true : false;
129
        *maindberror = (error == Rcl::Db::DbOpenMainDb) ? true : false;
129
    }
130
    }
130
    return false;
131
    return false;
131
    }
132
    }
132
    rcldb->setAbstractParams(-1, prefs.syntAbsLen, prefs.syntAbsCtx);
133
    rcldb->setAbstractParams(-1, prefs.syntAbsLen, prefs.syntAbsCtx);