Don't append pause: to already paused URIs
This commit is contained in:
parent
ac7ce0f792
commit
c5178d52f4
1 changed files with 2 additions and 1 deletions
|
@ -6731,7 +6731,8 @@ midori_browser_add_item (MidoriBrowser* browser,
|
||||||
|
|
||||||
/* Blank pages should not be delayed */
|
/* Blank pages should not be delayed */
|
||||||
if (katze_item_get_meta_integer (item, "delay") > 0
|
if (katze_item_get_meta_integer (item, "delay") > 0
|
||||||
&& strcmp (uri, "about:blank") != 0)
|
&& strcmp (uri, "about:blank") != 0
|
||||||
|
&& strncmp (uri, "pause:", 6) != 0)
|
||||||
{
|
{
|
||||||
gchar* new_uri = g_strdup_printf ("pause:%s", uri);
|
gchar* new_uri = g_strdup_printf ("pause:%s", uri);
|
||||||
midori_view_set_uri (MIDORI_VIEW (view), new_uri);
|
midori_view_set_uri (MIDORI_VIEW (view), new_uri);
|
||||||
|
|
Loading…
Reference in a new issue