4880: Ensure image rectangle is updated when editing a media reference from the gallery
svn: r17378
This commit is contained in:
parent
cfa96760e4
commit
03a93790c0
@ -317,10 +317,17 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
|||||||
try:
|
try:
|
||||||
from gui.editors import EditMediaRef
|
from gui.editors import EditMediaRef
|
||||||
EditMediaRef(self.dbstate, self.uistate, self.track,
|
EditMediaRef(self.dbstate, self.uistate, self.track,
|
||||||
obj, ref, None)
|
obj, ref, self.edit_callback)
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
pass
|
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):
|
def media_delete(self, del_media_handle_list):
|
||||||
"""
|
"""
|
||||||
Outside of this tab media objects have been deleted. Check if tab
|
Outside of this tab media objects have been deleted. Check if tab
|
||||||
|
Loading…
Reference in New Issue
Block a user