diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 04:19:18 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 04:19:18 +0200 |
commit | de2fdc093a1dd301b0ca6ee874eec9bbbcb86d33 (patch) | |
tree | ea7164a5b5f40b9a85b5a01ef85d9f0430b46f12 | |
parent | 3679dfe93eb5c4b0e123ba32a5cf55dd5854c00a (diff) |
Cosmetics
-rw-r--r-- | src/common/cfgfiles.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 02d8088b..a7949d3f 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -752,10 +752,14 @@ load_config (void) snprintf (prefs.hex_dcc_dir, sizeof (prefs.hex_dcc_dir), "%s\\Downloads", out); } #else - if (g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD)) - strcpy (prefs.hex_dcc_dir, g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD)); + if (g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD)) + { + strcpy (prefs.hex_dcc_dir, g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD)); + } else + { strcpy (prefs.hex_dcc_dir, g_build_filename (g_get_home_dir (), "Downloads", NULL)); + } #endif strcpy (prefs.hex_dnsprogram, "host"); strcpy (prefs.hex_gui_ulist_doubleclick, "QUERY %s"); |