Changeset 5955


Ignore:
Timestamp:
May 28, 2008, 3:05:17 PM (14 years ago)
Author:
charles
Message:

(gtk) silence console warning when starting a second transmission session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r5948 r5955  
    4848static void tr_core_set_hibernation_allowed( TrCore * core, gboolean allowed );
    4949
     50static gboolean our_instance_adds_remote_torrents = FALSE;
     51
    5052struct TrCorePrivate
    5153{
     
    180182                               G_TYPE_UINT, &result,
    181183                               G_TYPE_INVALID );
    182             if( result == 1 )
     184            if(( our_instance_adds_remote_torrents = result == 1 ))
    183185                dbus_g_object_type_install_info( TR_CORE_TYPE,
    184186                                                 &dbus_glib_tr_core_object_info );
     
    520522
    521523#ifdef HAVE_DBUS_GLIB
     524    if( our_instance_adds_remote_torrents )
    522525    {
    523526        DBusGConnection * bus = dbus_g_bus_get( DBUS_BUS_SESSION, NULL );
Note: See TracChangeset for help on using the changeset viewer.