mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
added comment about latest changes
This commit is contained in:
parent
a382d58b68
commit
a81caa3ac1
@ -196,6 +196,10 @@ void GxsIdTreeItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem
|
||||
QString dt = index.data(Qt::UserRole).toString();
|
||||
RsGxsId id(index.data(Qt::UserRole).toString().toStdString());
|
||||
|
||||
// This is a trick: UserRole in Mail generally is 0000...00000 when there is a notification, and is empty when there are multiple
|
||||
// destinations at once. This is not so nice to do that this way, but it's a quick workaround to a more complex method involving an
|
||||
// additional Qt role only to determine the number of destinations.
|
||||
|
||||
if(dt == "")
|
||||
ownOption.icon = FilesDefs::getIconFromQtResourcePath(":/icons/svg/people2.svg");
|
||||
else if(id.isNull())
|
||||
|
Loading…
Reference in New Issue
Block a user