From 5de71ffc0621459cd235be38366f7cb555bb3ab6 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Wed, 13 Feb 2008 15:43:17 +0000 Subject: [PATCH] Bug 415062 - Bookmark this Link - Cancel not working. patch from Michael Schonfeld , r=me. git-svn-id: svn://10.0.0.236/trunk@245612 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/browser-places.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/browser/base/content/browser-places.js b/mozilla/browser/base/content/browser-places.js index eff41df5f38..340e206099e 100644 --- a/mozilla/browser/base/content/browser-places.js +++ b/mozilla/browser/base/content/browser-places.js @@ -431,10 +431,10 @@ var PlacesCommandHook = { var linkURI = makeURI(aURL); var itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI); if (itemId == -1) { + StarUI.beginBatch(); var txn = PlacesUtils.ptm.createItem(linkURI, aParent, -1, aTitle); PlacesUtils.ptm.doTransaction(txn); itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI); - StarUI.beginBatch(); } StarUI.showEditBookmarkPopup(itemId, getBrowser(), "overlap");