]> spindle.queued.net Git - midori/commitdiff
Reset alert counter when loading a new page
authorChristian Dywan <christian@twotoasts.de>
Wed, 13 Apr 2011 21:56:00 +0000 (23:56 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 13 Apr 2011 21:56:00 +0000 (23:56 +0200)
All infobars including alerts are destroyed, so we can assume
no alerts are visible.

midori/midori-view.c

index d26e3cd2ec28c8c4188f6bb764fb3776eaec5920..5f86a1866818e5f478787a96a32dfd61ddb7afe1 100644 (file)
@@ -1036,6 +1036,7 @@ webkit_web_view_load_committed_cb (WebKitWebView*  web_view,
     for (; children; children = g_list_next (children))
         if (g_object_get_data (G_OBJECT (children->data), "midori-infobar-cb"))
             gtk_widget_destroy (children->data);
+    view->alerts = 0;
 
     if (g_strcmp0 (uri, katze_item_get_uri (view->item)))
     {