aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
authorPeter Harvey <peter.a.harvey@gmail.com>2006-02-14 20:32:09 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-02-14 20:32:09 +0800
commit9d6391aba379d4032d8be1d63d9535cb36163197 (patch)
treeb543ba6cb32aaaaf2ad8e8cf8a303e7e1a136962 /lib/egg/egg-toolbars-model.c
parent92eb07864379444f9ecee4ac14d9a4bb8939aaa2 (diff)
downloadgsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar.gz
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar.bz2
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar.lz
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar.xz
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.tar.zst
gsoc2013-epiphany-9d6391aba379d4032d8be1d63d9535cb36163197.zip
src/bookmarks/ephy-bookmarks-editor.c
2006-02-10 Peter Harvey <peter.a.harvey@gmail.com> * src/bookmarks/ephy-bookmarks-editor.c Do not create the bookmarks bar when removing bookmarks from the toolbar. * lib/egg/egg-toolbars-model.c Fix infinite loop when a toolbar has no items on it.
Diffstat (limited to 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-xlib/egg/egg-toolbars-model.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index 51ada3703..3162c304a 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -872,8 +872,10 @@ egg_toolbars_model_delete_item (EggToolbarsModel *model,
item = g_node_first_child (toolbar);
ipos = 0;
+ /* Don't delete toolbars that were already empty */
if (item == NULL)
{
+ toolbar = g_node_next_sibling (toolbar);
continue;
}