Changeset 1518


Ignore:
Timestamp:
Feb 28, 2007, 12:58:15 AM (15 years ago)
Author:
joshe
Message:

Fix unintentional change in the add dialog default directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r1517 r1518  
    122122  GtkWidget *getdir = gtk_file_chooser_button_new(
    123123    _("Choose a download directory"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
     124  const char * pref;
    124125
    125126  data->addfunc = addfunc;
     
    138139
    139140  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(autocheck), TRUE);
    140   gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( getdir ),
    141                                        getdownloaddir() );
     141  pref = tr_prefs_get( PREF_ID_DIR );
     142  if( NULL != pref )
     143  {
     144      gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( getdir ), pref );
     145  }
    142146
    143147  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dircheck), FALSE);
Note: See TracChangeset for help on using the changeset viewer.