Don't use red for last updated file unless deleted

This commit is contained in:
Martchus 2016-12-22 23:43:35 +01:00
parent 6a154c74af
commit 53e2561373
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ QVariant SyncthingDirectoryModel::data(const QModelIndex &index, int role) const
}
break;
case 6:
return dir.lastFileName.isEmpty() ? Colors::gray(m_brightColors) : Colors::red(m_brightColors);
return dir.lastFileName.isEmpty() ? Colors::gray(m_brightColors) : (dir.lastFileDeleted ? Colors::red(m_brightColors) : QVariant());
case 7:
return dir.errors.empty() ? Colors::gray(m_brightColors) : Colors::red(m_brightColors);
}