Changeset 5449


Ignore:
Timestamp:
Mar 30, 2008, 3:03:42 AM (14 years ago)
Author:
charles
Message:

(gtk) better error recording in the prefs dialog when updating the blocklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r5447 r5449  
    310310    char * text = NULL;
    311311    gchar * filename = NULL;
    312     GError * err = NULL;
    313312    int fd = -1;
    314313    int ok = 1;
     
    326325            g_snprintf( data->secondary, sizeof( data->secondary ),
    327326                        _( "Unable to get blocklist." ) );
     327            g_message( data->secondary );
    328328            g_idle_add( blocklistDialogSetSecondary, data );
    329329        }     
     
    332332    if( ok && !data->abortFlag )
    333333    {
     334        GError * err = NULL;
    334335        fd = g_file_open_tmp( "transmission-blockfile-XXXXXX.gz", &filename, &err );
    335336        if( err ) {
    336337            g_snprintf( data->secondary, sizeof( data->secondary ),
    337338                        _( "Unable to get blocklist: %s" ), err->message );
     339            g_warning( data->secondary );
    338340            g_idle_add( blocklistDialogSetSecondary, data );
    339341            g_clear_error( &err );
     342            ok = FALSE;
    340343        } else {
    341344            write( fd, text, size );
Note: See TracChangeset for help on using the changeset viewer.