summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2017-01-23 21:43:44 -0600
committerMichael Catanzaro <mcatanzaro@gnome.org>2017-01-23 21:44:16 -0600
commit80bfba17a18056900b1b90f9347d6440a0b99fb9 (patch)
tree923805e3d03b06cfa206e66ea72241b45e011c84
parentcd930a9c134f21ed8a8b18340168156f448f45c9 (diff)
downloadepiphany-80bfba17a18056900b1b90f9347d6440a0b99fb9.tar.gz
bookmarks-popover: Fix missing conditional in previous patch
No reason to mess with the tag detail list box if it's not visible. https://bugzilla.gnome.org/show_bug.cgi?id=772131
-rw-r--r--src/bookmarks/ephy-bookmarks-popover.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmarks-popover.c b/src/bookmarks/ephy-bookmarks-popover.c
index c8ceedefc..56053d3f1 100644
--- a/src/bookmarks/ephy-bookmarks-popover.c
+++ b/src/bookmarks/ephy-bookmarks-popover.c
@@ -72,7 +72,6 @@ ephy_bookmarks_popover_bookmark_tag_added_cb (EphyBookmarksPopover *popover,
/* If the bookmark no longer has 0 tags, we remove it from the tags list box */
if (g_sequence_get_length (ephy_bookmark_get_tags (bookmark)) == 1) {
- GtkWidget *row;
GList *children;
GList *l;
@@ -88,8 +87,11 @@ ephy_bookmarks_popover_bookmark_tag_added_cb (EphyBookmarksPopover *popover,
/* If we are on the tag detail list box, then the user has toggled the state
* of the tag widget multiple times. The first time the bookmark was removed
* from the list box. Now we have to add it back. */
- row = create_bookmark_row (bookmark, popover);
- gtk_container_add (GTK_CONTAINER (popover->tag_detail_list_box), row);
+ if (g_strcmp0 (visible_stack_child, "tag_detail") == 0) {
+ GtkWidget *row;
+ row = create_bookmark_row (bookmark, popover);
+ gtk_container_add (GTK_CONTAINER (popover->tag_detail_list_box), row);
+ }
}
}