- display existing files in green and in red non-existing files but in downloaded list

This commit is contained in:
Daniel Tartavel 2023-03-17 13:25:32 +01:00
parent 6c19dccf2e
commit 38c25450ed

View File

@ -712,7 +712,7 @@ void MainWindow::addTreeItem(QString name, QString fileSize, QString fullsize, Q
// item is a file
if (QFile::exists(this->downloading.savePath + "/" + name))
{
QBrush b (Qt::red);
QBrush b (Qt::green);
treeItem->setForeground(0, b);
treeItem->setFont(0, *font);
}else