diff options
Diffstat (limited to 'retrace')
-rw-r--r-- | retrace/daemon/ui/glframe_state_model.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/retrace/daemon/ui/glframe_state_model.cpp b/retrace/daemon/ui/glframe_state_model.cpp index a8a9caa7..8316bb5a 100644 --- a/retrace/daemon/ui/glframe_state_model.cpp +++ b/retrace/daemon/ui/glframe_state_model.cpp @@ -112,9 +112,12 @@ QStateValue::insert(const std::string &red, if (m_value != color) { // selected renders have different values - for (auto c : color) - c = "###"; - m_value = color; + QStringList tmp = m_value.value<QStringList>(); + for (int i = 0; i < 4; ++i) { + if (tmp[i] != color[i]) + tmp[i] = "###"; + } + m_value = tmp; } } |