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:
parent
4a2c663de3
commit
a66c930583
1 changed files with 15 additions and 13 deletions
28
gtk/main.c
28
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
|
||||
|
|
Loading…
Add table
Reference in a new issue