summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-06-08 17:20:09 -0400
committerJoseph Donofry <joedonofry@gmail.com>2021-06-08 17:20:09 -0400
commit0a833b6e9be809906ab5dc1ec6c2f602660aa13b (patch)
tree17c244db8d572e35e23d39da1b34dea2465135ea /src/timeline
parentTranslated using Weblate (Esperanto) (diff)
downloadnheko-0a833b6e9be809906ab5dc1ec6c2f602660aa13b.tar.xz
Avoid unnecessary QColor -> QString conversions
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineViewManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index 628f3c31..0785e3e1 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -122,8 +122,7 @@ QColor
 TimelineViewManager::userColor(QString id, QColor background)
 {
         if (!userColors.contains(id))
-                userColors.insert(
-                  id, QColor(utils::generateContrastingHexColor(id, background.name())));
+                userColors.insert(id, QColor(utils::generateContrastingHexColor(id, background)));
         return userColors.value(id);
 }