Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
a0f5a63a
Commit
a0f5a63a
authored
10 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
DD-16 : WIP : Fix filtering on menu and tabs. Sort still not done
parent
748bbeaf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llinventoryfilter.cpp
+22
-16
22 additions, 16 deletions
indra/newview/llinventoryfilter.cpp
indra/newview/skins/default/xui/en/menu_marketplace_view.xml
+1
-1
1 addition, 1 deletion
indra/newview/skins/default/xui/en/menu_marketplace_view.xml
with
23 additions
and
17 deletions
indra/newview/llinventoryfilter.cpp
+
22
−
16
View file @
a0f5a63a
...
...
@@ -33,6 +33,7 @@
#include
"llfolderviewitem.h"
#include
"llinventorymodel.h"
#include
"llinventorymodelbackgroundfetch.h"
#include
"llinventoryfunctions.h"
#include
"llmarketplacefunctions.h"
#include
"llviewercontrol.h"
#include
"llfolderview.h"
...
...
@@ -133,29 +134,34 @@ bool LLInventoryFilter::checkFolder(const LLUUID& folder_id) const
}
// Marketplace folder filtering
const
U32
filterTypes
=
mFilterOps
.
mFilterTypes
;
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_ACTIVE
)
{
if
(
!
LLMarketplaceData
::
instance
().
getActivationState
(
folder_id
))
S32
depth
=
depth_nesting_in_marketplace
(
folder_id
);
if
(
depth
>
0
)
{
const
U32
filterTypes
=
mFilterOps
.
mFilterTypes
;
LLUUID
listing_uuid
=
nested_parent_id
(
folder_id
,
depth
);
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_ACTIVE
)
{
return
false
;
if
(
!
LLMarketplaceData
::
instance
().
getActivationState
(
listing_uuid
))
{
return
false
;
}
}
}
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_INACTIVE
)
{
if
(
LLMarketplaceData
::
instance
().
getActivationState
(
folder_id
))
else
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_INACTIVE
)
{
return
false
;
if
(
!
LLMarketplaceData
::
instance
().
isListed
(
listing_uuid
)
||
LLMarketplaceData
::
instance
().
getActivationState
(
listing_uuid
))
{
return
false
;
}
}
}
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_UNASSOCIATED
)
{
if
(
!
LLMarketplaceData
::
instance
().
getListingID
(
folder_id
).
empty
())
else
if
(
filterTypes
&
FILTERTYPE_MARKETPLACE_UNASSOCIATED
)
{
return
false
;
if
(
LLMarketplaceData
::
instance
().
isListed
(
listing_uuid
))
{
return
false
;
}
}
}
// Always check against the clipboard
const
BOOL
passed_clipboard
=
checkAgainstClipboard
(
folder_id
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/menu_marketplace_view.xml
+
1
−
1
View file @
a0f5a63a
...
...
@@ -30,7 +30,7 @@
function=
"Marketplace.ViewSort.CheckItem"
parameter=
"show_unassociated"
/>
</menu_item_check>
<menu_item_check
name=
"show_active"
label=
"Show Active Listings
and Folders
Only"
>
<menu_item_check
name=
"show_active"
label=
"Show Active Listings Only"
>
<menu_item_check.on_click
function=
"Marketplace.ViewSort.Action"
parameter=
"show_active"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment