(gtk) #649 don't ask for confirmation on close when there are no active torrents.

This commit is contained in:
Charles Kerr 2008-01-21 15:51:53 +00:00
parent 0a2720339f
commit 02332c43a9
1 changed files with 8 additions and 2 deletions

View File

@ -366,8 +366,14 @@ askquit( TrCore * core,
GtkWidget * wind;
GtkWidget * dontask;
if( !pref_flag_get( PREF_KEY_ASKQUIT ) )
{
/* if the user doesn't want to be asked, don't ask */
if( !pref_flag_get( PREF_KEY_ASKQUIT ) ) {
func( cbdata );
return;
}
/* if there aren't any torrents, don't ask */
if( !tr_torrentCount( tr_core_handle( core ) ) ) {
func( cbdata );
return;
}