summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-09-02 15:50:44 +0200
committerportix <portix@gmx.net>2011-09-02 15:50:44 +0200
commit139402ebac6de3227439be4525b58fa396224ef5 (patch)
tree1acca11618148a71602657709ce7e229c1591af5 /src/session.c
parent8f4a57d7d10aaf52b48d717a3bd272474847863b (diff)
downloaddwb-139402ebac6de3227439be4525b58fa396224ef5.zip
Save session tabs in correct order
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
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++) {