From 6c1c7d5cf7dfc1b6d763cdb8fc2104fbe21464fc Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 3 Jan 2008 23:54:29 +0000 Subject: [PATCH] disable the `details' button if more than one torrent is selected. --- gtk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/main.c b/gtk/main.c index 96e7e1d86..34aa94427 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -202,7 +202,7 @@ refreshTorrentActions( GtkTreeSelection * s ) action_sensitize( "start-torrent", counts.inactiveCount!=0 ); action_sensitize( "remove-torrent", counts.totalCount!=0 ); action_sensitize( "verify-torrent", counts.totalCount!=0 ); - action_sensitize( "show-torrent-details", counts.totalCount!=0 ); + action_sensitize( "show-torrent-details", counts.totalCount==1 ); canUpdate = 0; gtk_tree_selection_selected_foreach( s, accumulateCanUpdateForeach, &canUpdate );