Closed Bug 73666 Opened 23 years ago Closed 23 years ago

Double cancel buttons in profile manager

Categories

(SeaMonkey :: Startup & Profiles, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: tracy, Assigned: bugzilla)

References

()

Details

Attachments

(6 files)

seen again on commercial builds:

windows 2001-03-27-06-trunk
linux 2001-03-27-05-mtrunk
mac 2001-03-27-12-trunk

-highlight a profile to delete
-click delete profile

a dialogue comes up with three buttons:  "okay"  and two "cancel"

one of the two cancel buttons used to be "delete files"
similar "double cancel" reported in bug 73613.
  9   try {
 10     okButton.setAttribute("value", bundle.getString("dontDeleteFiles"));
 11     Button2.setAttribute("value", bundle.getString("deleteFiles"));
 12     cancelButton.setAttribute("value", bundle.getString("cancel"));
 13   } catch(e) {
 
... "label" not "value", encore fois.
Assignee: trudelle → ben
Component: XP Toolkit/Widgets: XUL → XP Apps
Keywords: mozilla0.9, nsbeta1
Shoot, I need to update my tree (this has the "Yah" stuff.)
Just a sec.
Okay, so that "Yah" stuff in the attributes is present (my tree was up-to-date).
 These labels aren't ever apparent to the user, so I guess they're fine as is.
r=Yah, baby!
...Not that those fallback defaults should even exist, but how about removing 
those `Yah's while you're at it?

mao, is there any chance you overwrote these changes in another checkin? I 
thought I fixed these cases already.

r=blake
blake, cvs log says I'm ok, the file never got updated.

As far as the Yah's go, cvs log sez:
v1.2: Workaround for bug 26265, to handle failure to load string bundle at
startup. r=ben, a=leaf

Based on the fact that 26265 is fixed, the try{} should be unnecessary.
Can I just remove the whole conditional try() and catch() statements then? And 
get rid of the "Yah".  If so, I'll post a new patch.
sounds good to me
Assignee: ben → stephend
Component: XP Apps → Profile Manager FrontEnd
Crap-o-la.  (I deleted my tree, this didn't have the label changes, I'll 
re-attach.) Just a sec..
Um, you must mean something else (wrong file attached again?).
cvs diff -u somehow got confused on that file, but I can assure you the changes
I made are in the patch and the local file:

*Took out the try() and catch() statements
*Un-indented the declarations that were associated with the above
*Changed value to label

Everything else should be intact.  Basically, diff subtracted the whole file,
and added the changes in (and claimed it was a new batch of code entirely.)
Right, but you're resetting the localized labels, with hardcoded labels by
just yanking the try/catch lines and leaving both alternative actions in 
place:

+  okButton.setAttribute("label", bundle.getString("dontDeleteFiles"));
+  Button2.setAttribute("label", bundle.getString("deleteFiles"));
+  cancelButton.setAttribute("label", bundle.getString("cancel"));
+  okButton.setAttribute( "label", "Don't Delete Files" );
+  Button2.setAttribute( "label", "Delete Files" );
+  cancelButton.setAttribute( "label", "Cancel" );

re-assigning to someone has a clue (I don't)
Assignee: stephend → ben
r=timeless
Assignee: ben → jrgm
Keywords: reviewapproval
*** Bug 73193 has been marked as a duplicate of this bug. ***
Anyone want to check this in (I can't). 

ben can you give this the sr=?
*** Bug 74156 has been marked as a duplicate of this bug. ***
------- Additional Comments From John Morrison 2001-03-28 19:56 -------

Anyone want to check this in (I can't). 

ben can you give this the sr=?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
*** Bug 75776 has been marked as a duplicate of this bug. ***
-> blake.  ben can you give this trivial fix the sr=? Thanks.
Assignee: jrgm → blakeross
Status: ASSIGNED → NEW
cc'ing alec for sr. he actually reads bugmail ;)
sr=alecf
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified fixed:

windows 2001-04-16-06-trunk
linux 2001-04-16-05-trunk
mac 2001-04-16-04-trunk
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: