Changeset 9364


Ignore:
Timestamp:
Oct 22, 2009, 2:45:14 AM (13 years ago)
Author:
charles
Message:

(1.7x) backports for 1.76: r9143 #2427 fix GTK+ client crash when exiting while a torrent's Properties dialog is open

Location:
branches/1.7x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/NEWS

    r9363 r9364  
    99  * Fix invalid JSON "nan" error on optware
    1010==== GTK+ ====
     11  * Fix crash on exit when a torrent's Properties dialog is open
    1112  * Fix broken SIGINT (ctrl-c) handling
    1213  * Fix tray menu's main window status when Transmission is started minimized
  • branches/1.7x/gtk/file-list.c

    r8941 r9364  
    205205refresh( FileData * data )
    206206{
    207     tr_torrent * tor = tr_torrentFindFromId( tr_core_session( data->core ), data->torrentId );
     207    tr_torrent * tor = NULL;
     208    tr_session * session = tr_core_session( data->core );
     209
     210    if( session != NULL )
     211        tor = tr_torrentFindFromId( session, data->torrentId );
    208212
    209213    if( tor == NULL )
     
    214218    {
    215219        tr_file_index_t fileCount;
    216         data->tor = tr_torrentFindFromId( tr_core_session( data->core ), data->torrentId );
     220        data->tor = tr_torrentFindFromId( session, data->torrentId );
    217221        data->refresh_file_stat = tr_torrentFiles( tor, &fileCount );
    218222
Note: See TracChangeset for help on using the changeset viewer.