Changeset 3486 for trunk/gtk/main.c


Ignore:
Timestamp:
Oct 20, 2007, 10:07:21 PM (15 years ago)
Author:
charles
Message:

remove dead code (TR_STATUS_ACTIVE, TR_STATUS_INACTIVE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r3449 r3486  
    194194    int status = 0;
    195195    gtk_tree_selection_selected_foreach( s, accumulateStatusForeach, &status );
    196     action_sensitize( "pause-torrent", (status & TR_STATUS_ACTIVE) != 0);
    197     action_sensitize( "start-torrent", (status & TR_STATUS_INACTIVE) != 0);
     196    action_sensitize( "pause-torrent", TR_STATUS_IS_ACTIVE(status) );
     197    action_sensitize( "start-torrent", !TR_STATUS_IS_ACTIVE(status) );
    198198    action_sensitize( "remove-torrent", status != 0);
    199199    action_sensitize( "verify-torrent", status != 0);
Note: See TracChangeset for help on using the changeset viewer.