From: Christian Dywan Date: Tue, 24 Jul 2012 21:09:31 +0000 (+0200) Subject: Correctly use nth tab, not n - 1 to append X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21d95c62f471e1b875a893baeb486996f780d50d;p=midori Correctly use nth tab, not n - 1 to append --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index fb129b6d..62d5061a 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1801,7 +1801,7 @@ _midori_browser_add_tab (MidoriBrowser* browser, katze_array_move_item (browser->proxy_array, item, n); } else - n = midori_browser_get_n_pages (browser) - 1; + n = midori_browser_get_n_pages (browser); katze_item_set_meta_integer (item, "append", -1); #ifdef HAVE_GRANITE