remove dead code (TR_STATUS_ACTIVE, TR_STATUS_INACTIVE)

This commit is contained in:
Charles Kerr
2007-10-20 22:07:21 +00:00
parent a90c4a4b09
commit c50cadbcaa
5 changed files with 9 additions and 13 deletions

View File

@@ -193,8 +193,8 @@ refreshTorrentActions( GtkTreeSelection * s )
{
int status = 0;
gtk_tree_selection_selected_foreach( s, accumulateStatusForeach, &status );
action_sensitize( "pause-torrent", (status & TR_STATUS_ACTIVE) != 0);
action_sensitize( "start-torrent", (status & TR_STATUS_INACTIVE) != 0);
action_sensitize( "pause-torrent", TR_STATUS_IS_ACTIVE(status) );
action_sensitize( "start-torrent", !TR_STATUS_IS_ACTIVE(status) );
action_sensitize( "remove-torrent", status != 0);
action_sensitize( "verify-torrent", status != 0);
action_sensitize( "show-torrent-details", status != 0);