From e00a75f4cc97755a76f530b609456c5156174bc6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 11 Feb 2015 18:44:34 -0600 Subject: Make sure to save the bus we exported on --- src/sound-menu.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sound-menu.vala b/src/sound-menu.vala index afcc9a4..8718162 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -84,8 +84,9 @@ public class SoundMenu: Object uint export_id = 0; public void export (DBusConnection connection, string object_path) { + bus = connection; try { - export_id = connection.export_menu_model (object_path, this.root); + export_id = bus.export_menu_model (object_path, this.root); } catch (Error e) { critical ("%s", e.message); } -- cgit v1.2.3