From 36ca910d339fbb40eb9aeb225292af8b06258806 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 17 Oct 2018 15:15:11 +0200 Subject: [PATCH] Account Settings: fix progress being written in white when there are errors --- src/gui/folderstatusdelegate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 68aac0cd42..59ccc6ee46 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -264,6 +264,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & rect.setHeight(texts.count() * subFm.height() + 2 * margin); rect.setRight(option.rect.right() - margin); + painter->save(); painter->setBrush(color); painter->setPen(QColor(0xaa, 0xaa, 0xaa)); painter->drawRoundedRect(QStyle::visualRect(option.direction, option.rect, rect), @@ -280,6 +281,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & subFm.elidedText(eText, Qt::ElideLeft, textRect.width())); textRect.translate(0, textRect.height()); } + painter->restore(); h = rect.bottom() + margin; };