mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Avoid opening nodes too soon.
This commit is contained in:
parent
fdd42e321d
commit
b7c2003912
@ -867,11 +867,11 @@ XFE_RDFMenuToolbarBase::createCascadeButton(Widget menu,
|
||||
// Create some extra booleans to clear up the logic
|
||||
// of the if-statement below.
|
||||
XP_Bool want_children = !ignore_children;
|
||||
XP_Bool has_folder_children = ht_FolderHasFolderChildren(entry);
|
||||
XP_Bool want_non_folder_children_too = !_onlyHeaders;
|
||||
|
||||
if (want_children &&
|
||||
(has_folder_children || want_non_folder_children_too))
|
||||
(want_non_folder_children_too
|
||||
|| ht_FolderHasFolderChildren(entry)))
|
||||
{
|
||||
pulldown_name = "bookmarkPulldown";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user