From 26abec2256f8e964208db94acbdd8be1cf1c68ed Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Tue, 16 Sep 2008 23:15:30 +0000 Subject: Fixed bookmark bubble bug. If you changed the title, then clicked edit the title would revert. BUG=1353834 TEST=Create a bookmark, on the bubble type in a new name, click edit and make sure the editor that pops up has the name you just typed in. Review URL: http://codereview.chromium.org/3093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2289 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/bookmark_bubble_view.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser') diff --git a/chrome/browser/views/bookmark_bubble_view.cc b/chrome/browser/views/bookmark_bubble_view.cc index 12dd987..186defe 100644 --- a/chrome/browser/views/bookmark_bubble_view.cc +++ b/chrome/browser/views/bookmark_bubble_view.cc @@ -331,6 +331,9 @@ void BookmarkBubbleView::RemoveBookmark() { } void BookmarkBubbleView::ShowEditor() { + // The user may have edited the title, commit it now. + SetNodeTitleFromTextField(); + // Parent the editor to our root ancestor (not the root we're in, as that // is the info bubble and will close shortly). HWND parent = GetAncestor(GetViewContainer()->GetHWND(), GA_ROOTOWNER); -- cgit v1.1