fixed small bug in box initialization

This commit is contained in:
csoler 2019-03-12 16:59:45 +01:00
parent a67a35624d
commit 14d29a4490
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 2 additions and 23 deletions

View file

@ -48,10 +48,10 @@ const QString RsMessageModel::FilterString("filtered");
RsMessageModel::RsMessageModel(QObject *parent)
: QAbstractItemModel(parent)
{
mFilteringEnabled=false;
mCurrentBox = BOX_NONE;
mQuickViewFilter = QUICK_VIEW_ALL;
mFilterType = FILTER_TYPE_NONE;
mFilterStrings.clear();
}
void RsMessageModel::preMods()
@ -63,15 +63,6 @@ void RsMessageModel::postMods()
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(mMessages.size()-1,COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
}
// void RsGxsForumModel::setSortMode(SortMode mode)
// {
// preMods();
//
// mSortMode = mode;
//
// postMods();
// }
int RsMessageModel::rowCount(const QModelIndex& parent) const
{
if(!parent.isValid())