summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-body.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab-body.c b/src/tab-body.c
index b3eed22..808a10b 100644
--- a/src/tab-body.c
+++ b/src/tab-body.c
@@ -34,7 +34,9 @@ mq_tab_body_new(gchar *uri)
body = malloc(sizeof(*body));
body->web_view = WEBKIT_WEB_VIEW(webkit_web_view_new());
- webkit_web_view_load_uri(body->web_view, uri);
+ if (uri) {
+ webkit_web_view_load_uri(body->web_view, uri);
+ }
body->container = GTK_WIDGET(body->web_view);
gtk_widget_set_vexpand(body->container, TRUE);