From a232e644a3511cfc14294422636a8fbb3aeea4de Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 21 Jul 2011 09:09:05 +0000 Subject: [PATCH] Fixed the proper timing for the Edit and Delete buttons to be sensitive. svn: r17943 --- src/plugins/gramplet/EditExifMetadata.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/gramplet/EditExifMetadata.py b/src/plugins/gramplet/EditExifMetadata.py index ed893c41b..604c0280c 100644 --- a/src/plugins/gramplet/EditExifMetadata.py +++ b/src/plugins/gramplet/EditExifMetadata.py @@ -483,6 +483,9 @@ class EditExifMetadata(Gramplet): # XmpTag and IptcTag has been purposefully excluded self.__display_exif_tags(self.image_path) + # activate these buttons + self.activate_buttons(["Edit"]) + # has mime, but not an image else: self.exif_widgets["MessageArea"].set_text(_("Please choose a different image...")) @@ -521,8 +524,8 @@ class EditExifMetadata(Gramplet): # update set_has_data functionality self.set_has_data(has_data) - # activate these buttons - self.activate_buttons(["Delete", "Edit"]) + if has_data: + self.activate_buttons(["Delete"]) def changed_cb(self, ext_value =None): """