aboutsummaryrefslogtreecommitdiff
path: root/src/ka-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ka-applet.c')
-rw-r--r--src/ka-applet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ka-applet.c b/src/ka-applet.c
index f1fffbf..56d4b14 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -188,10 +188,6 @@ ka_applet_startup (GApplication *application)
KA_DEBUG ("Primary application");
self->priv->startup_ccache = ka_kerberos_init (self);
- if (!ka_dbus_connect (self)) {
- ka_applet_destroy (self);
- }
-
main_window = ka_main_window_create (self, self->priv->uixml);
gtk_application_add_window (GTK_APPLICATION(self), main_window);
ka_preferences_window_create (self, self->priv->uixml);
@@ -1080,6 +1076,8 @@ ka_applet_create ()
applet->priv->loader = ka_plugin_loader_create (applet);
g_return_val_if_fail (applet->priv->loader != NULL, NULL);
+ g_return_val_if_fail (ka_dbus_connect (applet), NULL);
+
return applet;
}
bgstack15