Add README
[tilda-gobject.git] / tilda-terminal.c
index 49b52e2..d7c6410 100644 (file)
@@ -182,7 +182,11 @@ tilda_terminal_dbus_register_object (TildaTerminal *tt)
        TildaWindow *parent_window = TILDA_WINDOW(tt->parent_window);
        gchar *object_path;
 
-       // Register this object with DBus
+       /* If DBus is not running, leave */
+       if (!dbus_connection)
+               return;
+
+       /* Register this object with DBus */
        object_path = g_strdup_printf ("/net/sourceforge/Tilda/Window%d/Terminal%d",
                                                                   parent_window->number, tt->number);
        dbus_g_connection_register_g_object (dbus_connection, object_path, G_OBJECT(tt));