mirror of
https://github.com/transmission/transmission
synced 2025-02-13 01:44:40 +00:00
(gtk) #649 don't ask for confirmation on close when there are no active torrents.
This commit is contained in:
parent
0a2720339f
commit
02332c43a9
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue