Reset alert counter when loading a new page
All infobars including alerts are destroyed, so we can assume no alerts are visible.
This commit is contained in:
parent
28e269365d
commit
4a8b55400b
1 changed files with 1 additions and 0 deletions
|
@ -1036,6 +1036,7 @@ webkit_web_view_load_committed_cb (WebKitWebView* web_view,
|
||||||
for (; children; children = g_list_next (children))
|
for (; children; children = g_list_next (children))
|
||||||
if (g_object_get_data (G_OBJECT (children->data), "midori-infobar-cb"))
|
if (g_object_get_data (G_OBJECT (children->data), "midori-infobar-cb"))
|
||||||
gtk_widget_destroy (children->data);
|
gtk_widget_destroy (children->data);
|
||||||
|
view->alerts = 0;
|
||||||
|
|
||||||
if (g_strcmp0 (uri, katze_item_get_uri (view->item)))
|
if (g_strcmp0 (uri, katze_item_get_uri (view->item)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue