Changeset 7390


Ignore:
Timestamp:
Dec 14, 2008, 10:14:00 PM (10 years ago)
Author:
charles
Message:

(trunk gtk) fix prefs oopsie reported by RolCol?

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/conf.c

    r7367 r7390  
    190190              int64_t      value )
    191191{
    192     tr_benc * d = getPrefs( );
    193 
    194     tr_bencDictRemove( d, key );
    195     tr_bencDictAddInt( d, key, value );
     192    tr_bencDictAddInt( getPrefs( ), key, value );
    196193}
    197194
     
    265262                 const char * value )
    266263{
    267     tr_benc * d = getPrefs( );
    268 
    269     tr_bencDictRemove( d, key );
    270     tr_bencDictAddStr( d, key, value );
     264    tr_bencDictAddStr( getPrefs( ), key, value );
    271265}
    272266
  • trunk/gtk/tr-core.c

    r7367 r7390  
    12251225                   const char * key )
    12261226{
     1227    g_signal_emit( core, TR_CORE_GET_CLASS( core )->prefsig, 0, key );
    12271228    pref_save( tr_core_session( core ) );
    1228     g_signal_emit( core, TR_CORE_GET_CLASS( core )->prefsig, 0, key );
    12291229}
    12301230
Note: See TracChangeset for help on using the changeset viewer.