summaryrefslogtreecommitdiff
path: root/retrace/daemon/ui/glframe_state_model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'retrace/daemon/ui/glframe_state_model.cpp')
-rw-r--r--retrace/daemon/ui/glframe_state_model.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/retrace/daemon/ui/glframe_state_model.cpp b/retrace/daemon/ui/glframe_state_model.cpp
index 53f99b2b..97e971e2 100644
--- a/retrace/daemon/ui/glframe_state_model.cpp
+++ b/retrace/daemon/ui/glframe_state_model.cpp
@@ -61,8 +61,9 @@ QStateValue::insert(int index, const std::string &value) {
m_values.append(0);
if (m_values.size() == index)
m_values.append(value_index);
- else
- m_values[index] = value_index;
+ else if (m_values[index] != value_index)
+ // selected renders have different values
+ m_values[index] = -1;
}
QStateModel::QStateModel() {}