From a66c93058350457baaae40219d4f3007e5962aae Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 13 Jul 2008 18:14:24 +0000 Subject: [PATCH] (gtk) #1081: Manual Announce grayed out when allowed --- gtk/main.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index 4bb5bee21..0bcd41db4 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1045,23 +1045,25 @@ g_message( "setting encryption to %d", encryption ); } gboolean -updatemodel(gpointer gdata) { - struct cbdata *data = gdata; +updatemodel( gpointer gdata ) +{ + struct cbdata *data = gdata; + const gboolean done = data->closing || global_sigcount; - if( !data->closing && 0 < global_sigcount ) - { - wannaquit( data ); - return FALSE; - } + if( !done ) + { + /* update the torrent data in the model */ + tr_core_update( data->core ); - /* update the torrent data in the model */ - tr_core_update( data->core ); + /* update the main window's statusbar and toolbar buttons */ + if( data->wind ) + tr_window_update( data->wind ); - /* update the main window's statusbar and toolbar buttons */ - if( data->wind ) - tr_window_update( data->wind ); + /* update the actions */ + refreshTorrentActions( tr_window_get_selection( data->wind ) ); + } - return TRUE; + return !done; } static void