Add option to disable the annoying quit confirmation dialog.

This commit is contained in:
Josh Elsasser
2007-04-05 22:28:02 +00:00
parent 91f7df5efd
commit b7c6284dce
3 changed files with 14 additions and 0 deletions

View File

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