Switch to unified view

a/src/query/docseqhist.cpp b/src/query/docseqhist.cpp
...
...
133
        sh->erase(sh->length()-1);
133
        sh->erase(sh->length()-1);
134
    } else
134
    } else
135
        sh->erase();
135
        sh->erase();
136
    }
136
    }
137
    bool ret = m_db->getDoc(m_it->udi, doc);
137
    bool ret = m_db->getDoc(m_it->udi, doc);
138
    if (!ret) {
138
    if (!ret || doc.pc == -1) {
139
    doc.url = "UNKNOWN";
139
    doc.url = "UNKNOWN";
140
        doc.ipath = "";
140
        doc.ipath = "";
141
    }
141
    }
142
    return ret;
142
    return ret;
143
}
143
}
...
...
146
{
146
{
147
    string udi;
147
    string udi;
148
    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
148
    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
149
                                    udi))
149
                                    udi))
150
        return false;
150
        return false;
151
    return m_db->getDoc(udi, pdoc);
151
    bool dbret = m_db->getDoc(udi, pdoc);
152
    return dbret && pdoc.pc != -1;
152
}
153
}
153
154
154
int DocSequenceHistory::getResCnt()
155
int DocSequenceHistory::getResCnt()
155
{   
156
{   
156
    if (m_hlist.empty())
157
    if (m_hlist.empty())