From 139402ebac6de3227439be4525b58fa396224ef5 Mon Sep 17 00:00:00 2001 From: portix Date: Fri, 2 Sep 2011 15:50:44 +0200 Subject: Save session tabs in correct order --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/session.c') diff --git a/src/session.c b/src/session.c index 0aaf3783..c2223e68 100644 --- a/src/session.c +++ b/src/session.c @@ -146,7 +146,7 @@ dwb_session_save(const char *name) { GString *buffer = g_string_new(NULL); g_string_append_printf(buffer, "g:%s\n", name); - for (GList *l = g_list_last(dwb.state.views); l; l=l->prev) { + for (GList *l = g_list_first(dwb.state.views); l; l=l->next) { WebKitWebView *web = WEBVIEW(l); WebKitWebBackForwardList *bf_list = webkit_web_view_get_back_forward_list(web); for (int i= -webkit_web_back_forward_list_get_back_length(bf_list); i<=webkit_web_back_forward_list_get_forward_length(bf_list); i++) { -- cgit v1.2.3