# HG changeset patch
# User Chris Cannam
# Date 1568975714 -3600
# Node ID 9ab3be2433974dca0a5dccd9fce97dabcd953510
# Parent  a72921e2194ff6739f1828bc3f1a2fcc1e09f140
Reorder fields to ensure consistency with older Image model code

diff -r a72921e2194f -r 9ab3be243397 base/Event.h
--- 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);
     }