From: Christian Dywan Date: Thu, 28 Jul 2011 21:08:03 +0000 (+0200) Subject: Never delay URIs given as command line arguments X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a3c3d155aae97b3025aac88b385f567019abcaf;p=midori Never delay URIs given as command line arguments --- diff --git a/midori/main.c b/midori/main.c index 004906c7..e49181df 100644 --- a/midori/main.c +++ b/midori/main.c @@ -599,7 +599,10 @@ midori_session_add_delay (KatzeArray* session) { KatzeItem* item; KATZE_ARRAY_FOREACH_ITEM (item, session) - katze_item_set_meta_integer (item, "delay", 1); + { + if (katze_item_get_meta_integer (item, "delay") == -1) + katze_item_set_meta_integer (item, "delay", 1); + } } static void @@ -2470,6 +2473,8 @@ main (int argc, uri_ready = midori_prepare_uri (uri); katze_item_set_uri (item, uri_ready); g_free (uri_ready); + /* Never delay command line arguments */ + katze_item_set_meta_integer (item, "delay", 0); katze_array_add_item (_session, item); uri = strtok (NULL, "|"); }