diff --git a/src/chatlog/content/filetransferwidget.cpp b/src/chatlog/content/filetransferwidget.cpp index 3f8efea59..2cf302a4d 100644 --- a/src/chatlog/content/filetransferwidget.cpp +++ b/src/chatlog/content/filetransferwidget.cpp @@ -121,9 +121,12 @@ void FileTransferWidget::acceptTransfer(const QString &filepath) void FileTransferWidget::setColor(const QColor &c, bool whiteFont) { - colorAnimation->setStartValue(color); - colorAnimation->setEndValue(c); - colorAnimation->start(); + if(c != color) + { + colorAnimation->setStartValue(color); + colorAnimation->setEndValue(c); + colorAnimation->start(); + } setProperty("fontColor", whiteFont ? "white" : "black");