summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-01 19:24:17 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:19 +0100
commitc135920b16639136d9fa35598c0af4a7b14416b8 (patch)
tree8b9451d808673b0ec23a3c36b2d8ee33079b1238 /src/modlist.cpp
parent8a789d303b22a7ac0d0a2b179b2500478eb29a46 (diff)
Fix highligth of collapsed separator. Move foreground color fix to delegate.
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index d4b2cc53..41b5c858 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -407,9 +407,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const
return QVariant();
}
else if (role == Qt::ForegroundRole) {
- if ((modInfo->hasFlag(ModInfo::FLAG_SEPARATOR) || (column == COL_NOTES)) && modInfo->color().isValid()) {
- return ColorSettings::idealTextColor(modInfo->color());
- } else if (column == COL_NAME) {
+ if (column == COL_NAME) {
int highlight = modInfo->getHighlight();
if (highlight & ModInfo::HIGHLIGHT_IMPORTANT)
return QBrush(Qt::darkRed);