diff --git a/src/DisplayTabs/_EmbeddedList.py b/src/DisplayTabs/_EmbeddedList.py index d0e167fec..6bc03a720 100644 --- a/src/DisplayTabs/_EmbeddedList.py +++ b/src/DisplayTabs/_EmbeddedList.py @@ -477,3 +477,12 @@ class EmbeddedList(ButtonTab): def post_rebuild(self): pass + + def rebuild_callback(self): + """ + The view must be remade when data changes outside this tab. + Use this method to connect to after a db change. It makes sure the + data is obtained again from db and the view rebuild + """ + self.changed = True + self.rebuild() diff --git a/src/DisplayTabs/_EventEmbedList.py b/src/DisplayTabs/_EventEmbedList.py index e480ac459..0ea79c1d5 100644 --- a/src/DisplayTabs/_EventEmbedList.py +++ b/src/DisplayTabs/_EventEmbedList.py @@ -204,7 +204,7 @@ class EventEmbedList(GroupEmbeddedList): def get_popup_menu_items(self): if self._tmpgroup == self._WORKGROUP: - GroupEmbeddedList.get_popup_menu_items(self) + return GroupEmbeddedList.get_popup_menu_items(self) else: return [ (True, True, gtk.STOCK_ADD, self.add_button_clicked),