From 0997291f66dbb820c534a9a5cbf85ca75488db89 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 6 Nov 2003 21:14:41 +0000 Subject: Handle correctly last bookmark case 2003-11-06 Marco Pesenti Gritti * src/ephy-completion-model.c: (ephy_completion_model_iter_next): Handle correctly last bookmark case --- ChangeLog | 6 ++++++ src/ephy-completion-model.c | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 48770c1f7..cc3c97052 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-06 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (ephy_completion_model_iter_next): + + Handle correctly last bookmark case + 2003-11-06 Marco Pesenti Gritti * embed/mozilla/ContentHandler.cpp: 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; -- cgit v1.2.3