diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-12-22 15:34:49 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2017-01-06 19:14:43 +0100 |
commit | 6f0941ef26ae1ddf1403c5728b5840603b0d165e (patch) | |
tree | a0b780f72ed83634f8ab11da5f2aac8ca49caaca | |
parent | 0b73e93d4b6c8e0dd4666014a9dd6bd9c2a61439 (diff) | |
download | network-manager-applet-6f0941ef26ae1ddf1403c5728b5840603b0d165e.tar.gz |
editor: add a missing session bus check
Only attempt to create an shared application instance only if there actuall is
a bus that would allow its reuse.
-rw-r--r-- | src/connection-editor/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection-editor/main.c b/src/connection-editor/main.c index d848668e..b4eac54f 100644 --- a/src/connection-editor/main.c +++ b/src/connection-editor/main.c @@ -373,7 +373,8 @@ main (int argc, char *argv[]) } g_signal_connect_swapped (list, "done", G_CALLBACK (g_main_loop_quit), loop); - owner_id = start_service (bus, list, ®istration_id); + if (bus) + owner_id = start_service (bus, list, ®istration_id); /* Figure out what page or editor window we'll show initially */ if (handle_arguments (list, type, create, show, uuid, import, (create || show || uuid || import))) |