1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

(gtk) #1081: Manual Announce grayed out when allowed

This commit is contained in:
Charles Kerr 2008-07-13 18:14:24 +00:00
parent 4a2c663de3
commit a66c930583

View file

@ -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