gui: restore sorting/filtering functions for the history list
This commit is contained in:
parent
27915893f0
commit
521e431055
@ -1626,7 +1626,8 @@ void RclMain::showDocHistory()
|
|||||||
new DocSequenceHistory(rcldb, g_dynconf,
|
new DocSequenceHistory(rcldb, g_dynconf,
|
||||||
string(tr("Document history").toUtf8()));
|
string(tr("Document history").toUtf8()));
|
||||||
src->setDescription((const char *)tr("History data").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->setSortSpec(m_sortspec);
|
||||||
m_source->setFiltSpec(m_filtspec);
|
m_source->setFiltSpec(m_filtspec);
|
||||||
emit docSourceChanged(m_source);
|
emit docSourceChanged(m_source);
|
||||||
|
|||||||
@ -318,7 +318,8 @@ void ResList::setDocSource(RefCntr<DocSequence> nsource)
|
|||||||
m_source = RefCntr<DocSequence>(new DocSource(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()
|
void ResList::readDocSource()
|
||||||
{
|
{
|
||||||
LOGDEB(("ResList::readDocSource()\n"));
|
LOGDEB(("ResList::readDocSource()\n"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user