mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
moved calls to setDynamicSortFilter(false) into constructors of sort proxy models
This commit is contained in:
parent
95e1073b8a
commit
d4141c493d
5 changed files with 21 additions and 14 deletions
|
|
@ -111,7 +111,10 @@ public:
|
|||
: QSortFilterProxyModel(parent)
|
||||
, m_header(header)
|
||||
, m_sortingEnabled(false), m_sortByState(false)
|
||||
, m_showOfflineNodes(true) {}
|
||||
, m_showOfflineNodes(true)
|
||||
{
|
||||
setDynamicSortFilter(false); // causes crashes when true.
|
||||
}
|
||||
|
||||
bool lessThan(const QModelIndex& left, const QModelIndex& right) const override
|
||||
{
|
||||
|
|
@ -184,7 +187,6 @@ NewFriendList::NewFriendList(QWidget */*parent*/) : /* RsAutoUpdatePage(5000,par
|
|||
|
||||
mProxyModel->setSourceModel(mModel);
|
||||
mProxyModel->setSortRole(RsFriendListModel::SortRole);
|
||||
mProxyModel->setDynamicSortFilter(false);
|
||||
mProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||
mProxyModel->setFilterRole(RsFriendListModel::FilterRole);
|
||||
mProxyModel->setFilterRegExp(QRegExp(RsFriendListModel::FilterString));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue