(trunk gtk) kill "pref_flag_t" in a burlap sack and throw it off the cliff into the freezing water below

This commit is contained in:
Charles Kerr
2010-12-22 06:11:49 +00:00
parent 28ec370476
commit b86e1e1056
7 changed files with 35 additions and 66 deletions

View File

@@ -844,9 +844,9 @@ appsetup( TrWindow * wind,
gboolean forcepause,
gboolean isIconified )
{
const pref_flag_t start =
forcepause ? PREF_FLAG_FALSE : PREF_FLAG_DEFAULT;
const pref_flag_t prompt = PREF_FLAG_DEFAULT;
const gboolean doStart = pref_flag_get( TR_PREFS_KEY_START ) && !forcepause;
const gboolean doPrompt = pref_flag_get( PREF_KEY_OPTIONS_PROMPT );
const gboolean doNotify = TRUE;
/* fill out cbdata */
cbdata->wind = NULL;
@@ -873,7 +873,7 @@ appsetup( TrWindow * wind,
/* add torrents from command-line and saved state */
tr_core_load( cbdata->core, forcepause );
tr_core_add_list( cbdata->core, torrentFiles, start, prompt, TRUE );
tr_core_add_list( cbdata->core, torrentFiles, doStart, doPrompt, doNotify );
torrentFiles = NULL;
tr_core_torrents_added( cbdata->core );