aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/occupant_menu/view.vala
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/occupant_menu/view.vala')
-rw-r--r--main/src/ui/occupant_menu/view.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/occupant_menu/view.vala b/main/src/ui/occupant_menu/view.vala
index fb63a06a..a76f370a 100644
--- a/main/src/ui/occupant_menu/view.vala
+++ b/main/src/ui/occupant_menu/view.vala
@@ -94,7 +94,7 @@ public class View : Popover {
kick_button.clicked.connect(kick_button_clicked);
}
- if (jid_menu != null) stack.remove(jid_menu);
+ if (jid_menu != null) jid_menu.destroy();
stack.add_named(outer_box, "menu");
stack.visible_child_name = "menu";
jid_menu = outer_box;