(trunk gtk) when running for the first time and deciding on a default watch directory, check G_USER_DIRECTORY_DOWNLOAD *before* G_USER_DIRECTORY_DESKTOP. Suggested by Chris Coulson @ https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/338046
This commit is contained in:
parent
80eca9666d
commit
8c1001f302
|
@ -41,8 +41,8 @@ tr_prefs_init_defaults( void )
|
||||||
|
|
||||||
#ifdef HAVE_GIO
|
#ifdef HAVE_GIO
|
||||||
str = NULL;
|
str = NULL;
|
||||||
if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DESKTOP );
|
|
||||||
if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD );
|
if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD );
|
||||||
|
if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DESKTOP );
|
||||||
if( !str ) str = tr_getDefaultDownloadDir( );
|
if( !str ) str = tr_getDefaultDownloadDir( );
|
||||||
pref_string_set_default ( PREF_KEY_DIR_WATCH, str );
|
pref_string_set_default ( PREF_KEY_DIR_WATCH, str );
|
||||||
pref_flag_set_default ( PREF_KEY_DIR_WATCH_ENABLED, FALSE );
|
pref_flag_set_default ( PREF_KEY_DIR_WATCH_ENABLED, FALSE );
|
||||||
|
|
Loading…
Reference in New Issue