summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@src.gnome.org>2004-05-24 01:14:21 +0000
committerElijah Newren <newren@src.gnome.org>2004-05-24 01:14:21 +0000
commit742691d24789c6e67152ca3cf28c52abb8b62c90 (patch)
tree2b4fc3567367687fb3abf7b6e97bd7ca8c1216e4
parentf050bcb156244c0c1955f5ba3abd1e1cab859d3b (diff)
downloadyelp-742691d24789c6e67152ca3cf28c52abb8b62c90.tar.gz
Fix save session problems
-rw-r--r--ChangeLog7
-rw-r--r--src/yelp-main.c7
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c66ea21f..cba9db62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-05-07 Arvind Samptur <arvind.samptur@wipro.com>
+
+ * src/yelp-main.c (main_save_session): Get the open_urls
+ in the right index of argv
+ (main_restore_session): Need get rid of "\"" before passing
+ the url to main_open_new_window (). (#142081)
+
2004-04-27 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Basque (eu) end Georgian (ka),
diff --git a/src/yelp-main.c b/src/yelp-main.c
index c8b037a6..c89ef293 100644
--- a/src/yelp-main.c
+++ b/src/yelp-main.c
@@ -251,7 +251,7 @@ main_save_session (GnomeClient *client,
urls = tmp;
}
- argv[2] = g_strconcat (urls, "\"", NULL);
+ argv[arg_len - 1] = g_strconcat (urls, "\"", NULL);
g_free (urls);
}
@@ -286,12 +286,13 @@ main_restore_session (void)
}
if (open_urls) {
- gchar **urls = g_strsplit (open_urls, ";", -1);
+ gchar **urls = g_strsplit_set (open_urls, ";\"", -1);
gchar *url;
gint i = 0;
while ((url = urls[i]) != NULL) {
- main_open_new_window (yelp_base, url);
+ if (*url != '\0')
+ main_open_new_window (yelp_base, url);
++i;
}