only show avatars in column 0

This commit is contained in:
csoler 2019-08-12 14:17:00 +02:00
parent d3928049e1
commit 13f1343ae5
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -423,14 +423,6 @@ bool RsFriendListModel::passesFilter(const EntryIndex& e,int column) const
for(auto iter(mFilterStrings.begin()); iter != mFilterStrings.end(); ++iter)
passes_strings = passes_strings && s.contains(*iter,Qt::CaseInsensitive);
// bool passes_quick_view =
// (mQuickViewFilter==QUICK_VIEW_ALL)
// || (std::find(fmpe.msgtags.begin(),fmpe.msgtags.end(),mQuickViewFilter) != fmpe.msgtags.end())
// || (mQuickViewFilter==QUICK_VIEW_STARRED && (fmpe.msgflags & RS_MSG_STAR))
// || (mQuickViewFilter==QUICK_VIEW_SYSTEM && (fmpe.msgflags & RS_MSG_SYSTEM));
//
// return passes_quick_view && passes_strings;
return passes_strings;
}
@ -771,6 +763,9 @@ QVariant RsFriendListModel::userRole(const EntryIndex& fmpe,int col) const
QVariant RsFriendListModel::decorationRole(const EntryIndex& entry,int col) const
{
if(col > 0)
return QVariant();
switch(entry.type)
{
case ENTRY_TYPE_NODE: