Fixed reversed logic
parent
e7645eb995
commit
4e84aa4ecf
|
|
@ -2959,7 +2959,7 @@ BOOL LLPanelLandExperiences::postBuild()
|
|||
mAllowed->addFilter(boost::bind(LLPanelExperiencePicker::FilterWithProperty, _1, LLExperienceCache::PROPERTY_GRID));
|
||||
|
||||
// no privileged ones
|
||||
mBlocked->addFilter(boost::bind(LLPanelExperiencePicker::FilterWithProperties, _1, LLExperienceCache::PROPERTY_PRIVILEGED|LLExperienceCache::PROPERTY_GRID));
|
||||
mBlocked->addFilter(boost::bind(LLPanelExperiencePicker::FilterWithoutProperties, _1, LLExperienceCache::PROPERTY_PRIVILEGED|LLExperienceCache::PROPERTY_GRID));
|
||||
|
||||
getChild<LLLayoutPanel>("trusted_layout_panel")->setVisible(FALSE);
|
||||
getChild<LLTextBox>("experiences_help_text")->setVisible(FALSE);
|
||||
|
|
|
|||
|
|
@ -407,9 +407,9 @@ bool LLPanelExperiencePicker::FilterWithProperty( const LLSD& experience, S32 pr
|
|||
return (experience[LLExperienceCache::PROPERTIES].asInteger() & prop) != 0;
|
||||
}
|
||||
|
||||
bool LLPanelExperiencePicker::FilterWithProperties( const LLSD& experience, S32 prop)
|
||||
bool LLPanelExperiencePicker::FilterWithoutProperties( const LLSD& experience, S32 prop)
|
||||
{
|
||||
return ! ((experience[LLExperienceCache::PROPERTIES].asInteger() & prop) == prop);
|
||||
return ((experience[LLExperienceCache::PROPERTIES].asInteger() & prop) == prop);
|
||||
}
|
||||
|
||||
bool LLPanelExperiencePicker::FilterWithoutProperty( const LLSD& experience, S32 prop )
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
void setDefaultFilters();
|
||||
|
||||
static bool FilterWithProperty(const LLSD& experience, S32 prop);
|
||||
static bool FilterWithProperties(const LLSD& experience, S32 prop);
|
||||
static bool FilterWithoutProperties(const LLSD& experience, S32 prop);
|
||||
static bool FilterWithoutProperty(const LLSD& experience, S32 prop);
|
||||
static bool FilterMatching(const LLSD& experience, const LLUUID& id);
|
||||
bool FilterOverRating(const LLSD& experience);
|
||||
|
|
|
|||
Loading…
Reference in New Issue