From 876c61da26b86b46e8f4117fe687dbaff4faebdc Mon Sep 17 00:00:00 2001 From: Vincas Dargis Date: Wed, 26 May 2010 21:22:47 +0300 Subject: ephy-bookmarks-editor: fix new topic selection bug When the search entry is not empty and "New topic" is activated from the menu, the "All" topic will set for renaming instead of the new "Type a topic" node. This can cause serious data loss. Bug #518727 Signed-off-by: Diego Escalante Urrelo --- src/bookmarks/ephy-bookmarks-editor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index a778a1b68..f33095354 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -261,6 +261,7 @@ cmd_add_topic (GtkAction *action, node = ephy_bookmarks_add_keyword (editor->priv->bookmarks, _("Type a topic")); + gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW (editor->priv->key_view))); ephy_node_view_select_node (EPHY_NODE_VIEW (editor->priv->key_view), node); ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->key_view), TRUE); add_text_renderer_monitor (editor); -- cgit v1.2.3