Edit metadata dialog: Fix the edit values button for custom tag-like columns showing a uneeded warning about changed values

This commit is contained in:
Kovid Goyal 2012-05-17 09:46:35 +05:30
parent 0e720a8486
commit b4684cc1c2

View File

@ -349,7 +349,8 @@ class Text(Base):
return d.exec_()
def edit(self):
if self.getter() != self.initial_val:
if (self.getter() != self.initial_val and (self.getter() or
self.initial_val)):
d = self._save_dialog(self.parent, _('Values changed'),
_('You have changed the values. In order to use this '
'editor, you must either discard or apply these '