Magellan Linux

Contents of /trunk/kdebase/patches/kdebase-3.5.4-dbus.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 5 months ago) by niro
File size: 634 byte(s)
-import

1 --- branches/KDE/3.5/kdebase/kioslave/media/mediamanager/halbackend.cpp 2006/06/21 08:56:19 553501
2 +++ branches/KDE/3.5/kdebase/kioslave/media/mediamanager/halbackend.cpp 2006/07/26 08:18:37 566466
3 @@ -112,6 +112,14 @@
4 DBusError error;
5 dbus_error_init(&error);
6 dbus_connection = dbus_connection_open_private(DBUS_SYSTEM_BUS, &error);
7 +
8 + if (!dbus_connection || dbus_error_is_set(&error)) {
9 + dbus_error_free(&error);
10 + libhal_ctx_free(m_halContext);
11 + m_halContext = NULL;
12 + return false;
13 + }
14 +
15 dbus_bus_register(dbus_connection, &error);
16
17 if (dbus_error_is_set(&error)) {