From c51611f202cb350c1ed370fc18e2b4729f170fd0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 11 Feb 2010 14:45:03 +0000 Subject: [PATCH] (trunk gtk) make the GTK+ client's file list a little faster --- gtk/file-list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/file-list.c b/gtk/file-list.c index 23d363b99..216ee1417 100644 --- a/gtk/file-list.c +++ b/gtk/file-list.c @@ -109,8 +109,9 @@ refreshFilesForeach( GtkTreeModel * model, if( is_file ) { tr_torrent * tor = data->tor; - const int enabled = tr_torrentGetFileDL( tor, index ); - const int priority = tr_torrentGetFilePriority( tor, index ); + const tr_info * inf = tr_torrentInfo( tor ); + const int enabled = !inf->files[index].dnd; + const int priority = inf->files[index].priority; const uint64_t have = data->refresh_file_stat[index].bytesCompleted; const int prog = size ? (int)((100.0*have)/size) : 1;