also dont inherit --name
authorDieter Plaetinck <dieter@plaetinck.be>
Sun, 17 May 2009 14:53:50 +0000 (16:53 +0200)
committerDieter Plaetinck <dieter@plaetinck.be>
Sun, 17 May 2009 14:53:50 +0000 (16:53 +0200)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index b8ac195..3a907b3 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -503,7 +503,7 @@ new_window_load_uri (const gchar * uri) {
     g_string_append_printf (to_execute, "%s --uri '%s'", uzbl.state.executable_path, uri);
     int i;
     for (i = 0; entries[i].long_name != NULL; i++) {
-        if ((entries[i].arg == G_OPTION_ARG_STRING) && (strcmp(entries[i].long_name,"uri")!=0)) {
+        if ((entries[i].arg == G_OPTION_ARG_STRING) && (strcmp(entries[i].long_name,"uri")!=0) && (strcmp(entries[i].long_name,"name")!=0)) {
             gchar** str = (gchar**)entries[i].arg_data;
             if (*str!=NULL) {
                 g_string_append_printf (to_execute, " --%s '%s'", entries[i].long_name, *str);