From 03a93790c024e8b866e35b5267563d4da3aff328 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 2 May 2011 18:42:51 +0000 Subject: [PATCH] 4880: Ensure image rectangle is updated when editing a media reference from the gallery svn: r17378 --- src/gui/editors/displaytabs/gallerytab.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/displaytabs/gallerytab.py b/src/gui/editors/displaytabs/gallerytab.py index 2dd2628b4..efacdb17c 100644 --- a/src/gui/editors/displaytabs/gallerytab.py +++ b/src/gui/editors/displaytabs/gallerytab.py @@ -317,10 +317,17 @@ class GalleryTab(ButtonTab, DbGUIElement): try: from gui.editors import EditMediaRef EditMediaRef(self.dbstate, self.uistate, self.track, - obj, ref, None) + obj, ref, self.edit_callback) except Errors.WindowActiveError: pass + def edit_callback(self, media_ref, media): + """ + Rebuild the gallery after a media reference is edited in case the + image rectangle has changed. + """ + self.rebuild() + def media_delete(self, del_media_handle_list): """ Outside of this tab media objects have been deleted. Check if tab