From a3fa949e29cb1385bdf147a4d5261dd38b77ae53 Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Sun, 14 Apr 2013 00:08:10 -0500 Subject: [PATCH] Fix a rare TypeError in the metadatabox --- picard/ui/metadatabox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/picard/ui/metadatabox.py b/picard/ui/metadatabox.py index 495ae8022..b49068957 100644 --- a/picard/ui/metadatabox.py +++ b/picard/ui/metadatabox.py @@ -429,7 +429,8 @@ class MetadataBox(QtGui.QTableWidget): new_item.setFlags(orig_flags if length else new_flags) self.set_item_value(new_item, self.tag_diff.new, name) - color = self.colors.get(self.tag_status(name), TagStatus.NoChange) + color = self.colors.get(self.tag_status(name), + self.colors[TagStatus.NoChange]) orig_item.setForeground(color) new_item.setForeground(color)