aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks.c
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2006-10-15 18:40:12 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2006-10-15 18:40:12 +0800
commit3786f5c471255934c481016c7e5119cc40c81ca0 (patch)
tree74699215c1ba8053a03a3a2fee9e37c4008bee53 /src/bookmarks/ephy-bookmarks.c
parent617e8a31a14c7acb1fbebad4475c43cc24f9476e (diff)
downloadgsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar.gz
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar.bz2
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar.lz
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar.xz
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.tar.zst
gsoc2013-epiphany-3786f5c471255934c481016c7e5119cc40c81ca0.zip
Fix unprotected call to ephy_node_remove_child. Bug #362063.
2006-10-15 Jean-François Rameau <jframeau@cvs.gnome.org> * src/bookmarks/ephy-bookmarks.c: (update_has_smart_address): Fix unprotected call to ephy_node_remove_child. Bug #362063.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r--src/bookmarks/ephy-bookmarks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 8ba6bd217..89341ae70 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -1272,7 +1272,10 @@ update_has_smart_address (EphyBookmarks *bookmarks, EphyNode *bmk, const char *a
*/
if (smart && with_options)
{
- ephy_node_remove_child (smart_bmks, bmk);
+ if (ephy_node_has_child (smart_bmks, bmk))
+ {
+ ephy_node_remove_child (smart_bmks, bmk);
+ }
ephy_node_add_child (smart_bmks, bmk);
}
else if (smart)