summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_editor_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 21:07:01 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 21:07:01 +0000
commit4f0613908b2847d5e20926246266d551bf3e7120 (patch)
tree11543b00f0440b8850bfd27e04fab3083e643587 /chrome/browser/gtk/bookmark_editor_gtk.cc
parente03c2152bd297525eed2dccc303e48df8f59dfc7 (diff)
downloadchromium_src-4f0613908b2847d5e20926246266d551bf3e7120.zip
chromium_src-4f0613908b2847d5e20926246266d551bf3e7120.tar.gz
chromium_src-4f0613908b2847d5e20926246266d551bf3e7120.tar.bz2
Select correct default folder in bookmark editor gtk.
BUG=none TEST=right click in a dropdown from a folder on the bookmark bar, select add, you should see that the correct folder is seleted in the bookmark editor tree view. Add a bookmark, it should show up in the right place. Review URL: http://codereview.chromium.org/149725 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_editor_gtk.cc')
-rw-r--r--chrome/browser/gtk/bookmark_editor_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_editor_gtk.cc b/chrome/browser/gtk/bookmark_editor_gtk.cc
index b986f20..01a8459 100644
--- a/chrome/browser/gtk/bookmark_editor_gtk.cc
+++ b/chrome/browser/gtk/bookmark_editor_gtk.cc
@@ -152,7 +152,7 @@ void BookmarkEditorGtk::Init(GtkWindow* parent_window) {
if (show_tree_) {
GtkTreeIter selected_iter;
- int64 selected_id = node_ ? node_->GetParent()->id() : 0;
+ int64 selected_id = parent_ ? parent_->id() : 0;
tree_store_ = bookmark_utils::MakeFolderTreeStore();
bookmark_utils::AddToTreeStore(bb_model_, selected_id,
tree_store_, &selected_iter);