Changeset 10357


Ignore:
Timestamp:
Mar 12, 2010, 12:17:36 AM (12 years ago)
Author:
charles
Message:

(1.9x gtk) #3033 "wrong calls to GtkFileChooserDialog?" -- fix minor regression in the 'add torrent' dialog caused by r10341

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/gtk/add-dialog.c

    r10341 r10357  
    156156        tr_torrentSetDownloadDir( tor, o->downloadDir );
    157157        file_list_set_torrent( o->list, tr_torrentId( tor ) );
     158        tr_torrentVerify( tor );
    158159    }
    159160}
     
    167168 */
    168169static void
    169 sourceChanged( GtkFileChooserButton * b,
    170                gpointer               gdata )
     170sourceChanged( GtkFileChooserButton * b, gpointer gdata )
    171171{
    172172    struct AddData * data = gdata;
    173     char *           filename = gtk_file_chooser_get_filename(
    174          GTK_FILE_CHOOSER( b ) );
     173    char * filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER( b ) );
    175174
    176175    /* maybe instantiate a torrent */
     
    211210
    212211static void
    213 verifyRequested( GtkButton * button UNUSED, gpointer gdata )
     212downloadDirChanged( GtkFileChooserButton * b, gpointer gdata )
    214213{
    215214    struct AddData * data = gdata;
    216 
    217     if( data->gtor )
    218         tr_torrentVerify( tr_torrent_handle( data->gtor ) );
    219 }
    220 
    221 static void
    222 downloadDirChanged( GtkFileChooserButton * b,
    223                     gpointer               gdata )
    224 {
    225     char *           fname = gtk_file_chooser_get_filename(
    226          GTK_FILE_CHOOSER( b ) );
    227     struct AddData * data = gdata;
     215    char * fname = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER( b ) );
    228216
    229217    if( fname && ( !data->downloadDir || strcmp( fname, data->downloadDir ) ) )
     
    231219        g_free( data->downloadDir );
    232220        data->downloadDir = g_strdup( fname );
    233 
    234221        updateTorrent( data );
    235         verifyRequested( NULL, data );
    236222    }
    237223
Note: See TracChangeset for help on using the changeset viewer.