aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincas Dargis <vindrg@gmail.com>2010-05-27 02:22:47 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2011-01-11 08:43:49 +0800
commit876c61da26b86b46e8f4117fe687dbaff4faebdc (patch)
tree5f013080cf4e571531490d8bdbc38d66f6ec67de /src
parent5821e5259e29c789658830c32fb4a9243cea624b (diff)
downloadgsoc2013-epiphany-876c61da26b86b46e8f4117fe687dbaff4faebdc.tar.gz
gsoc2013-epiphany-876c61da26b86b46e8f4117fe687dbaff4faebdc.tar.zst
gsoc2013-epiphany-876c61da26b86b46e8f4117fe687dbaff4faebdc.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c1
1 files changed, 1 insertions, 0 deletions
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);