From: Daniel Carl Date: Sat, 9 Nov 2013 00:27:52 +0000 (+0100) Subject: Don't handle home page opening twice. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=6319db734ccac13ab37d863a612190aa589be75f;p=vimb.git Don't handle home page opening twice. We set the homepage to open if not uri was given when vimb was called. But the vb_load_uri() function did also a check if a uri was given. Now only vb_load_uri handles the opening of home page. --- diff --git a/src/main.c b/src/main.c index b56ee72..54022ab 100644 --- a/src/main.c +++ b/src/main.c @@ -1003,7 +1003,7 @@ int main(int argc, char *argv[]) init_core(); /* command line argument: URL */ - vb_load_uri(&(Arg){VB_TARGET_CURRENT, argc > 1 ? argv[argc - 1] : vb.config.home_page}); + vb_load_uri(&(Arg){VB_TARGET_CURRENT, argc > 1 ? argv[argc - 1] : NULL}); /* Run the main GTK+ event loop */ gtk_main();