Changeset 2048


Ignore:
Timestamp:
Jun 11, 2007, 5:22:21 PM (15 years ago)
Author:
charles
Message:

(filsel branch - gtk) in prefs dialog, changes to the download directory weren't always honored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/gtk/tr_prefs.c

    r1938 r2048  
    867867{
    868868    TrPrefs    * self;
    869     const char * dir;
     869    char      * dir;
    870870    int          id;
    871871
    872872    TR_IS_PREFS( data );
    873873    self = TR_PREFS( data );
    874     dir = gtk_file_chooser_get_current_folder( GTK_FILE_CHOOSER( widget ) );
     874    dir = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER( widget ) );
    875875    GETPREFID( widget, id );
    876876    self->fileselhack = TRUE;
    877877    tr_core_set_pref( TR_CORE( self->core ), id, dir );
    878878    self->fileselhack = FALSE;
     879    g_free( dir );
    879880}
    880881
Note: See TracChangeset for help on using the changeset viewer.