Qt GUI: ensure that new page size is taken into account ASAP (no need for restarting app)

This commit is contained in:
Jean-Francois Dockes
2010-02-02 08:20:35 +01:00
parent 5569b5be7c
commit 8409e6fcae
2 changed files with 32 additions and 20 deletions
+4
View File
@@ -179,6 +179,8 @@ void ResList::setDocSource()
m_sortspecs,
title));
}
// Reset the page size in case the preference was changed
m_pager->setPageSize(prefs.respagesize);
m_pager->setDocSource(m_docSource);
resultPageNext();
}
@@ -382,6 +384,8 @@ void ResList::resultPageBack()
// Go to the first page
void ResList::resultPageFirst()
{
// In case the preference was changed
m_pager->setPageSize(prefs.respagesize);
m_pager->resultPageFirst();
displayPage();
}