mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Add option to disable the annoying quit confirmation dialog.
This commit is contained in:
@@ -560,6 +560,12 @@ askquit( GtkWindow * parent, callbackfunc_t func, void * cbdata )
|
||||
struct quitdata * stuff;
|
||||
GtkWidget * wind;
|
||||
|
||||
if( !tr_prefs_get_bool_with_default( PREF_ID_ASKQUIT ) )
|
||||
{
|
||||
func( cbdata );
|
||||
return;
|
||||
}
|
||||
|
||||
stuff = g_new( struct quitdata, 1 );
|
||||
stuff->func = func;
|
||||
stuff->cbdata = cbdata;
|
||||
|
||||
Reference in New Issue
Block a user