Closed Bug 172025 Opened 23 years ago Closed 23 years ago

Cancelling a creation of new bookmark folder still leaves a folder called New Folder

Categories

(Firefox :: Bookmarks & History, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: andre.bugs2, Assigned: bugs)

References

Details

Attachments

(1 file, 2 obsolete files)

With current CVS of Phoenix, if I right-click on PT and choose New Folder and hit Cancel a folder named "New Folder" will still appear on the PT. Blake says the folder is created even before the properties dialog appears.
Confirmed with a recent linux build (this afternoon)
Summary: Cancelling a creation of new folder on PT still leaves a folder called New Folder → [Moz] Cancelling a creation of new folder on PT still leaves a folder called New Folder
Summary: [Moz] Cancelling a creation of new folder on PT still leaves a folder called New Folder → Cancelling a creation of new folder on PT still leaves a folder called New Folder
*** Bug 175942 has been marked as a duplicate of this bug. ***
Attached patch patch to fix. (obsolete) — Splinter Review
If the user cancels the properties dialog (or clicks the X box), remove the folder that was created.
Attached patch oops, forgot a line (obsolete) — Splinter Review
Attachment #112678 - Attachment is obsolete: true
Thanks Ben. I tried this patch on top of current CVS and it worked as expected (the folder New Folder is removed when you hit Cancel). I tried this on both the PT and in Manage Bookmarks.
Summary: Cancelling a creation of new folder on PT still leaves a folder called New Folder → Cancelling a creation of new bookmark folder still leaves a folder called New Folder
cute! A nit, I'd prefer to define a new function in BookmarksCommand: openBookmarkProperties (aUrl) { return openDialog("chrome://browser/content/bookmarks/bookmarksProperties.xul", "", "centerscreen,chrome,dependent,resizable=no", aUrl); } and use it where it is needed to avoid to return in the openBookmark loop and avoid js warnings.
s/and use/and to use
fine! for note: the "properties" case in openBookmark was for opening a property dialog when ALT-clicking or ALT-ENTER. But it was not used anymore, you was right to remove it since ALT saves for consistency. If we need it again, it's easy to set it back.
-> me
Assignee: chanial → ben
fixed!
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
VERIFIED Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030714 Mozilla Firebird/0.6
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: