Closed Bug 776925 Opened 12 years ago Closed 12 years ago

Quick Filter Status in View Menu desyncs when the Quick Filter toolbar button is removed

Categories

(Thunderbird :: Toolbars and Tabs, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 18.0

People

(Reporter: david, Assigned: squib)

References

Details

Attachments

(2 files)

Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0
View > Layout > Wide View
Quick Filter toolbar NOT displayed (my default).  

Dismissing the Quick Filter toolbar by using the ESC key fails to remove the checkmark for that toolbar in the View menu.  

1.  In the menu bar, launch the Quick Filter toolbar by selecting [View > Toolbars > Quick Filter Bar].  

2.  Dismiss the Quick Filter toolbar by using the ESC key.  The Quick Filter toolbar closes.  

3.  In the menu bar, select [View > Toolbars].  There is still a checkmark next to Quick Filter Bar.  

4.  In the menu bar, again launch the Quick Filter toolbar by selecting [View > Toolbars > Quick Filter Bar].  

5.  In the menu bar, select [View > Toolbars].  There is no checkmark next to Quick Filter Bar even though the toolbar is present.  

This lack of synchronization between the reality of the toolbar and the status shown in the View menu persists as the toolbar's presence is toggled.  

If the toolbar was present when terminating Thunderbird while reality and the View menu were indeed synchronized, synchronization is lost when launching Thunderbird.  

1.  In the menu bar, launch the Quick Filter toolbar by selecting [View > Toolbars > Quick Filter Bar].  

2.  Terminate Thunderbird.  

3.  Launch Thunderbird.  The Quick Filter toolbar is present.  

4. In the menu bar, select [View > Toolbars].  There is no checkmark next to Quick Filter Bar.  

ONLY if the toolbar was dismissed before terminating Thunderbird, launching Thunderbird restores the synchronization of reality with the View menu.
WFM on 15.0
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120824 Thunderbird/15.0
Default 15.0 theme
NO enabled plugins

Running Thunderbird in Safe Mode, the problem did not occur.  I then tried selectively disabling my four extensions -- not in Safe Mode -- to see which one might cause the problem.  With ALL extensions disabled, however, the problem still appeared.  

Since the only difference between Safe Mode and disabling all extensions is that Safe Mode also disables the theme, I must conclude that the problem lies within the Default 15.0 theme (something that was carried forward from the Default 14.0 theme and possibly prior themes).  I cannot find a way outside of Safe Mode to disable the current theme in order to confirm this.  

Still a problem.  Does NOT work for me.
Component: Mail Window Front End → Theme
(In reply to David E. Ross from comment #2)
> Since the only difference between Safe Mode and disabling all extensions is
> that Safe Mode also disables the theme

That's not actually what happens when you start safe mode. If it did, you'd end up with no UI (or at least, a *completely* broken UI).

However, there is another important difference in safe mode: all your UI customizations are reset (notably localstore.rdf). Something in there is probably invalid and causing errors.
Component: Theme → Toolbars and Tabs
With Thunderbird terminated, I located localstore.rdf in the profile and renamed it x-localstore.rdf-x.  When I then launched Thunderbird, it created a new localstore.rdf; and the problem went away.  

However, I do not like the default set of buttons; so I customized the buttons using the standard user interface (right-click and select Customize on the various Thunderbird tool bars, drag-and-drop buttons to add or remove them).  The problem reappeared.  

Yes, the problem lies within localstore.rdf or in how Thunderbird uses that file.  However, I think my customization was valid since I only used the end-user interface.  I am attaching a copy of my localstore.rdf file for others to diagnose this problem.
Updating bug title to reflect what's actually happening here.
Summary: Quick Filter Status in View Menu Not Synchronized with Reality → Quick Filter Status in View Menu desyncs when the Quick Filter toolbar button is removed
Attached patch Fix thisSplinter Review
This fixes the issue by enabling/disabling the commands, rather than the buttons, and by having the checked attribute of the toolbar button observe the menuitem, rather than vice versa. That way, we properly update the check mark even when the toolbar is removed.

All the QFB tests pass locally with this patch.
Assignee: nobody → squibblyflabbetydoo
Status: NEW → ASSIGNED
Attachment #657953 - Flags: review?(bugmail)
Attachment #657953 - Flags: review?(bugmail) → review+
Checked in: http://hg.mozilla.org/comm-central/rev/6ed66e622bb0
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
In which version of Thunderbird is this being fixed?  It is still a problem in 
    Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121005 Thunderbird/16.0
18, I think.
Target Milestone: --- → Thunderbird 18.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: