diff --git a/src/DbState.py b/src/DbState.py index 08c4e5c0d..ef2cda495 100644 --- a/src/DbState.py +++ b/src/DbState.py @@ -34,6 +34,7 @@ class DbState(Callback): __signals__ = { 'database-changed' : (DbBsddbRead, ), 'active-changed' : (str, ), + 'media-changed' : (str, ), 'no-database' : None, } diff --git a/src/plugins/view/mediaview.py b/src/plugins/view/mediaview.py index 4e0161573..59dffc89b 100644 --- a/src/plugins/view/mediaview.py +++ b/src/plugins/view/mediaview.py @@ -332,6 +332,7 @@ class MediaView(ListView): pix = ThumbNails.get_thumbnail_image( Utils.media_path_full(self.dbstate.db, obj.get_path())) self.image.set_from_pixbuf(pix) + self.dbstate.emit('media-changed', (handle, )) def ui_definition(self): """