]> git.notmuchmail.org Git - sup/commitdiff
bugfix: duplicate labels
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 10 Jul 2007 06:20:28 +0000 (06:20 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 10 Jul 2007 06:20:28 +0000 (06:20 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@494 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/label.rb

index 755ed3ffb213da2e9522ec74de96530e76af5bb5..aef40acf8defd6f42a0b47d638981a6a7df7df43 100644 (file)
@@ -42,6 +42,7 @@ class LabelManager
   end
   
   def << t
+    t = t.intern unless t.is_a? Symbol
     unless @labels.member?(t) || RESERVED_LABELS.member?(t)
       @labels[t] = true
       @modified = true