changeset 1787:9ab3be243397 time-frequency-boxes

Reorder fields to ensure consistency with older Image model code
author Chris Cannam
date Fri, 20 Sep 2019 11:35:14 +0100
parents a72921e2194f
children baafe1bb7e51
files base/Event.h
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/Event.h	Fri Sep 20 11:24:47 2019 +0100
+++ b/base/Event.h	Fri Sep 20 11:35:14 2019 +0100
@@ -370,9 +370,13 @@
                 list << QString("%1").arg(m_level);
             }
         }
-        
+
+        // Put URI before label, to preserve the ordering previously
+        // used in the custom Image model exporter. We shouldn't
+        // change the column ordering unless (until?) we provide a
+        // facility for the user to customise it
+        if (m_uri != "") list << m_uri;
         if (m_label != "") list << m_label;
-        if (m_uri != "") list << m_uri;
         
         return list.join(delimiter);
     }