From 6a3c3d155aae97b3025aac88b385f567019abcaf Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 28 Jul 2011 23:08:03 +0200 Subject: [PATCH] Never delay URIs given as command line arguments --- midori/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, "|"); } -- 2.39.5