Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Unified Diff: chrome/browser/gtk/bookmark_bar_gtk.cc

Issue 506012: Fix a node selection when creating a new item under the 'Other Bookmarks' (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_bar_gtk.cc
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index cac9ed492d201bc6fbf98532c7e507c4d99c94bb..8583b800881641050cdb966b3a886d2660e92284 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698