diff --git a/src/roster_window.py b/src/roster_window.py
index 363c7657af47ac366a463e76bf47efe91fddeced..92916b31794107d047327e5fce8294d292496fea 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -6065,6 +6065,9 @@ class RosterWindow:
 				account, bookmark)
 			gc_sub_menu.append(item)
 
+	def set_actions_menu_needs_rebuild(self):
+		self.actions_menu_needs_rebuild = True
+
 	def show_appropriate_context_menu(self, event, iters):
 		# iters must be all of the same type
 		model = self.modelfilter