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;