summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-10-24 18:00:45 +0200
committerportix <portix@gmx.net>2010-10-24 18:00:45 +0200
commit877a581c57c6e045c1077a6da4f1cf9367b77989 (patch)
treeee8eb042cfb0a3ef3ad0c77f0e933aaac139fead /src/session.c
parentde9c9138f0107fde16a65b5ad6e7e7793311ee8a (diff)
downloaddwb-877a581c57c6e045c1077a6da4f1cf9367b77989.zip
content blocker: use resource-request signal instead of got-headers
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c
index f88b4dbb..dc1df1ce 100644
--- a/src/session.c
+++ b/src/session.c
@@ -103,13 +103,17 @@ dwb_session_restore(const gchar *name) {
g_free(uri);
uri = g_strdup(line[1]);
}
- if (i == length)
+ if (i == length && lastweb)
dwb_session_load_webview(lastweb, uri, last);
g_strfreev(line);
}
g_strfreev(lines);
gtk_widget_show_all(dwb.gui.window);
- if (dwb.state.layout & Maximized) {
+
+ if (!dwb.state.views)
+ dwb_add_view(NULL);
+
+ if (dwb.state.layout & Maximized && dwb.state.views) {
gtk_widget_hide(dwb.gui.right);
for (GList *l = dwb.state.views->next; l; l=l->next) {
gtk_widget_hide(((View*)l->data)->vbox);