aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-11 18:44:34 -0600
committerTed Gould <ted@gould.cx>2015-02-11 18:44:34 -0600
commite00a75f4cc97755a76f530b609456c5156174bc6 (patch)
treedb80dcdacb0ce67dcef05965e69ae3992f9b65f8 /src/sound-menu.vala
parentc04ad808504b189eff85f4064e33e7c2c90941a2 (diff)
downloadayatana-indicator-sound-e00a75f4cc97755a76f530b609456c5156174bc6.tar.gz
ayatana-indicator-sound-e00a75f4cc97755a76f530b609456c5156174bc6.tar.bz2
ayatana-indicator-sound-e00a75f4cc97755a76f530b609456c5156174bc6.zip
Make sure to save the bus we exported on
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r--src/sound-menu.vala3
1 files changed, 2 insertions, 1 deletions
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);
}