summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 04:12:12 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 04:12:12 +0000
commitf21f89e9551c521934ff2c86277503094468eca7 (patch)
tree2838da7ae4d008784c5594c98c67a0d6ce81e6ee /chrome/browser/gtk
parent8a680795288acc86ca0e5ab95d694d59e48fd791 (diff)
downloadchromium_src-f21f89e9551c521934ff2c86277503094468eca7.zip
chromium_src-f21f89e9551c521934ff2c86277503094468eca7.tar.gz
chromium_src-f21f89e9551c521934ff2c86277503094468eca7.tar.bz2
Fix a node selection when creating a new item under the 'Other Bookmarks'
BUG=30067 TEST=Right click 'Other Bookmarks' and choose 'Add Page' or 'Add Folder' to create a new item. Make sure the editor opens with the 'Other Bookmarks' selected by default and the item is created under the 'Other Bookmarks'. Review URL: http://codereview.chromium.org/506012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index 00e11a0..5fb37e4 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/gtk/bookmark_bar_gtk.cc
@@ -852,8 +852,8 @@ void BookmarkBarGtk::PopupMenuForNode(GtkWidget* sender,
const BookmarkNode* parent = NULL;
std::vector<const BookmarkNode*> nodes;
if (sender == other_bookmarks_button_) {
+ nodes.push_back(node);
parent = model_->GetBookmarkBarNode();
- nodes.push_back(parent);
} else if (sender != bookmark_toolbar_.get()) {
nodes.push_back(node);
parent = node->GetParent();