summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-13 10:03:39 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-13 10:03:39 +0200
commitca3fa043f09b0684999f8881e65c22dfde875004 (patch)
tree56e584ea78c8eb4199220c3cf55ff7bb27e2e991 /src/fe-gtk
parentd4f3738ca82bf586503a4e1ddae6ff0797beb94a (diff)
Save URLs to disk on-the-fly and provide an option for toggling it
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/setup.c5
-rw-r--r--src/fe-gtk/urlgrab.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 907218b7..d773cbdf 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -489,9 +489,10 @@ static const setting logging_settings[] =
 	{ST_LABEL,	N_("See the strftime manpage for details.")},
 #endif
 
-	{ST_HEADER,	N_("URL Grabber"),0,0,0},
+	{ST_HEADER,	N_("URLs"),0,0,0},
+	{ST_TOGGLE,	N_("Enable logging of URLs to disk"), P_OFFINTNL(url_logging), 0, 0, 0},
 	{ST_TOGGLE,	N_("Enable URL grabber"), P_OFFINTNL(url_grabber), 0, 0, 2},
-	{ST_NUMBER,	N_("Maximum number of URLs:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999},
+	{ST_NUMBER,	N_("Maximum number of URLs to grab:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999},
 
 	{ST_END, 0, 0, 0, 0, 0}
 };
diff --git a/src/fe-gtk/urlgrab.c b/src/fe-gtk/urlgrab.c
index d9b79670..1cd46d9e 100644
--- a/src/fe-gtk/urlgrab.c
+++ b/src/fe-gtk/urlgrab.c
@@ -138,7 +138,9 @@ static void
 url_save_callback (void *arg1, char *file)
 {
 	if (file)
-		url_save (file, "w", TRUE);
+	{
+		url_save_tree (file, "w", TRUE);
+	}
 }
 
 static void