Changeset 4284


Ignore:
Timestamp:
Dec 22, 2007, 4:34:47 PM (14 years ago)
Author:
charles
Message:

(gtk) fix crash reported by hussam

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr_core.c

    r4272 r4284  
    385385
    386386    /* init from prefs & listen to pref changes */
    387     g_signal_connect( core, "prefs-changed", G_CALLBACK(prefsChanged), NULL );
    388387    prefsChanged( core, PREF_KEY_SORT_MODE, NULL );
    389388    prefsChanged( core, PREF_KEY_SORT_REVERSED, NULL );
    390389    prefsChanged( core, PREF_KEY_MAX_PEERS_GLOBAL, NULL );
     390    g_signal_connect( core, "prefs-changed", G_CALLBACK(prefsChanged), NULL );
    391391
    392392    return core;
  • trunk/gtk/tr_window.c

    r4248 r4284  
    304304
    305305    /* listen for prefs changes that affect the window */
     306    p->core = core;
    306307    prefsChanged( core, PREF_KEY_MINIMAL_VIEW, self );
    307308    prefsChanged( core, PREF_KEY_STATUS_BAR, self );
    308309    prefsChanged( core, PREF_KEY_STATUS_BAR_STATS, self );
    309310    prefsChanged( core, PREF_KEY_TOOLBAR, self );
    310     p->core = core;
    311311    p->pref_handler_id = g_signal_connect( core, "prefs-changed",
    312312                                           G_CALLBACK(prefsChanged), self );
Note: See TracChangeset for help on using the changeset viewer.