fixed memory leak due to QPainter::save() called twice but restore() called only once

This commit is contained in:
csoler 2020-08-15 12:56:27 +02:00
parent 82ba488574
commit 9ae790e80b

View File

@ -102,7 +102,6 @@ void ChannelPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem &
RsGxsChannelPost post = index.data(Qt::UserRole).value<RsGxsChannelPost>() ;
painter->save();
painter->fillRect( option.rect, option.backgroundBrush);
painter->restore();