summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-11 04:19:18 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-11 04:19:18 +0200
commitde2fdc093a1dd301b0ca6ee874eec9bbbcb86d33 (patch)
treeea7164a5b5f40b9a85b5a01ef85d9f0430b46f12 /src
parent3679dfe93eb5c4b0e123ba32a5cf55dd5854c00a (diff)
Cosmetics
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c8
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");