diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |