changeset 1788:7fc6256af2d2

Reorder fields to ensure consistency with older Image model code
author Chris Cannam
date Fri, 20 Sep 2019 11:35:14 +0100
parents 4eac4bf35b45
children 71e97de5053f
files base/Event.h
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/Event.h	Tue Sep 17 11:21:33 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);
     }