From 75966502c600257d85a6ca3ddbcda5408457f7c3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Sep 2017 15:40:22 -0400 Subject: mq_window_new(): Open "about:new" if no URIs are given --- (limited to 'src') diff --git a/src/window.c b/src/window.c index 1dd83b3..7fc36cc 100644 --- a/src/window.c +++ b/src/window.c @@ -50,8 +50,12 @@ mq_window_new(gchar **uris) gtk_container_add(GTK_CONTAINER(window->gtk_window), window->gtk_notebook); - for (i = 0; uris && uris[i]; ++i) { - add_tab(window, uris[i], -1); + if (uris && uris[0]) { + for (i = 0; uris && uris[i]; ++i) { + add_tab(window, uris[i], -1); + } + } else { + add_tab(window, "about:new", -1); } gtk_widget_show_all(window->gtk_window); -- cgit v0.9.1