Changeset 6327


Ignore:
Timestamp:
Jul 13, 2008, 6:14:24 PM (13 years ago)
Author:
charles
Message:

(gtk) #1081: Manual Announce grayed out when allowed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r6309 r6327  
    10461046
    10471047gboolean
    1048 updatemodel(gpointer gdata) {
    1049   struct cbdata *data = gdata;
    1050 
    1051   if( !data->closing && 0 < global_sigcount )
    1052   {
    1053       wannaquit( data );
    1054       return FALSE;
    1055   }
    1056 
    1057   /* update the torrent data in the model */
    1058   tr_core_update( data->core );
    1059 
    1060   /* update the main window's statusbar and toolbar buttons */
    1061   if( data->wind )
    1062       tr_window_update( data->wind );
    1063 
    1064   return TRUE;
     1048updatemodel( gpointer gdata )
     1049{
     1050    struct cbdata *data = gdata;
     1051    const gboolean done = data->closing || global_sigcount;
     1052
     1053    if( !done )
     1054    {
     1055        /* update the torrent data in the model */
     1056        tr_core_update( data->core );
     1057
     1058        /* update the main window's statusbar and toolbar buttons */
     1059        if( data->wind )
     1060            tr_window_update( data->wind );
     1061
     1062        /* update the actions */
     1063        refreshTorrentActions( tr_window_get_selection( data->wind ) );
     1064    }
     1065
     1066    return !done;
    10651067}
    10661068
Note: See TracChangeset for help on using the changeset viewer.