diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ephy-completion-model.c | 11 |
2 files changed, 15 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2003-11-06 Marco Pesenti Gritti <marco@gnome.org> + * src/ephy-completion-model.c: (ephy_completion_model_iter_next): + + Handle correctly last bookmark case + +2003-11-06 Marco Pesenti Gritti <marco@gnome.org> + * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c index 95bfe0e69..07f84ea88 100644 --- a/src/ephy-completion-model.c +++ b/src/ephy-completion-model.c @@ -496,9 +496,16 @@ ephy_completion_model_iter_next (GtkTreeModel *tree_model, root = get_node_root (model, node); next = ephy_node_get_next_child (root, node); - if (next == NULL && root == model->priv->history) + if (next == NULL) { - next = ephy_node_get_nth_child (model->priv->bookmarks, 0); + if (root == model->priv->history) + { + next = ephy_node_get_nth_child (model->priv->bookmarks, 0); + } + else + { + return FALSE; + } } iter->user_data = next; |