diff options
author | Mark Janes <mark.a.janes@intel.com> | 2017-10-18 23:53:19 -0700 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-11-26 19:15:01 -0800 |
commit | ed3a98881b365f079793b6d022bb7c525bc1fcf6 (patch) | |
tree | 8a1ca56a7bd263921fac451b9ea281a90203603b /retrace/daemon | |
parent | 31e1c6032069d0bf0ffad01b091810cb769c75f9 (diff) |
state: allow multiple differing values
Diffstat (limited to 'retrace/daemon')
-rw-r--r-- | retrace/daemon/ui/glframe_state_model.cpp | 5 |
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() {} |