Feature request#5026 -- fixed mistakes added in last commit.

svn: r17926
This commit is contained in:
Rob G. Healey
2011-07-14 08:06:36 +00:00
parent e2b4233aec
commit 473c809e39
2 changed files with 25 additions and 46 deletions

View File

@@ -591,11 +591,10 @@ class EditExifMetadata(Gramplet):
"""
Return True if the gramplet has data, else return False.
"""
if media is None:
return False
full_path = Utils.media_path_full(self.dbstate.db, media.get_path() )
full_path = Utils.media_path_full(self.dbstate.db, media.get_path())
return self.view.get_has_data(full_path)
def __create_button(self, pos, text, callback =[], icon =False, sensitive =False):