[epiphany] ephy-bookmarks-editor: fix new topic selection bug



commit 876c61da26b86b46e8f4117fe687dbaff4faebdc
Author: Vincas Dargis <vindrg gmail com>
Date:   Wed May 26 21:22:47 2010 +0300

    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 <descalante igalia com>

 src/bookmarks/ephy-bookmarks-editor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index a778a1b..f330953 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]