gui: restore sorting/filtering functions for the history list

This commit is contained in:
Jean-Francois Dockes 2012-02-17 15:06:24 +01:00
parent 27915893f0
commit 521e431055
2 changed files with 4 additions and 2 deletions

View File

@ -1626,7 +1626,8 @@ void RclMain::showDocHistory()
new DocSequenceHistory(rcldb, g_dynconf,
string(tr("Document history").toUtf8()));
src->setDescription((const char *)tr("History data").toUtf8());
m_source = RefCntr<DocSequence>(src);
DocSource *source = new DocSource(RefCntr<DocSequence>(src));
m_source = RefCntr<DocSequence>(source);
m_source->setSortSpec(m_sortspec);
m_source->setFiltSpec(m_filtspec);
emit docSourceChanged(m_source);

View File

@ -318,7 +318,8 @@ void ResList::setDocSource(RefCntr<DocSequence> nsource)
m_source = RefCntr<DocSequence>(new DocSource(nsource));
}
// Reapply parameters. Sort params probably changed
// A query was executed, or the filtering/sorting parameters changed,
// re-read the results.
void ResList::readDocSource()
{
LOGDEB(("ResList::readDocSource()\n"));