Closed
Bug 383959
Opened 17 years ago
Closed 17 years ago
Remember last preference pane across quit/relaunch
Categories
(Camino Graveyard :: Preferences, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino1.6
People
(Reporter: stuart.morgan+bugzilla, Assigned: froodian)
Details
(Keywords: fixed1.8.1.8)
Attachments
(1 file)
4.26 KB,
patch
|
peeja
:
review+
stuart.morgan+bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
Standard/HIG behavior is to remember the last-used preference pane and always open that one again, so we should be doing that. (I thought we had this filed, but I don't see it anywhere.)
Pulling some prefPane polish bugs to 1.6 as well, per roadmap discussions.
Priority: -- → P3
Target Milestone: --- → Camino1.6
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → froodian
Assignee | ||
Updated•17 years ago
|
Attachment #278877 -
Flags: review? → review?(peter.a.jaros)
Comment 3•17 years ago
|
||
Comment on attachment 278877 [details] [diff] [review] Patch v1 > - (void)selectPreferencePaneByIdentifier:(NSString *)identifier > { > NSBundle *bundle = [NSBundle bundleWithIdentifier:identifier]; >+ >+ // If we can't find the identifier, select the default pane >+ if (!bundle) { >+ identifier = kDefaultPaneIdentifier; >+ bundle = [NSBundle bundleWithIdentifier:identifier]; >+ } > >- if (bundle && ![mCurrentPaneIdentifier isEqualToString:identifier]) >+ if (![mCurrentPaneIdentifier isEqualToString:identifier]) In the original, we handled a failure to load the General pane; after the patch we assume it works. On the other hand, it looks like the rest of the method deals with a nil bundle pretty well, and it mostly results in an error message. I'm inclined to let it go, unless you or someone else has a better way to handle it, but I thought it was worth pointing out. Beyond that, everything looks solid. r+.
Attachment #278877 -
Flags: review?(peter.a.jaros) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #278877 -
Flags: superreview?(stuart.morgan)
Reporter | ||
Comment 4•17 years ago
|
||
Comment on attachment 278877 [details] [diff] [review] Patch v1 sr=smorgan
Attachment #278877 -
Flags: superreview?(stuart.morgan) → superreview+
Reporter | ||
Comment 5•17 years ago
|
||
Whoops, this patch seems to have fallen through the cracks. Landed on trunk and MOZILLA_1_8_BRANCH. Of course, I remembered that I forgot to attribute the patch a few seconds after committing, rather than before. Sorry Ian :(
You need to log in
before you can comment on or make changes to this bug.
Description
•