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
4fd175bc
Commit
4fd175bc
authored
10 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
DD-289 : WIP : Prevent building tabs twice
parent
d1d58fbf
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/llfloatermarketplacelistings.cpp
+15
-8
15 additions, 8 deletions
indra/newview/llfloatermarketplacelistings.cpp
indra/newview/llfloatermarketplacelistings.h
+2
-1
2 additions, 1 deletion
indra/newview/llfloatermarketplacelistings.h
with
17 additions
and
9 deletions
indra/newview/llfloatermarketplacelistings.cpp
+
15
−
8
View file @
4fd175bc
...
@@ -346,7 +346,7 @@ void LLFloaterMarketplaceListings::fetchContents()
...
@@ -346,7 +346,7 @@ void LLFloaterMarketplaceListings::fetchContents()
}
}
}
}
void
LLFloaterMarketplaceListings
::
set
up
()
void
LLFloaterMarketplaceListings
::
set
RootFolder
()
{
{
if
(
LLMarketplaceData
::
instance
().
getSLMStatus
()
!=
MarketplaceStatusCodes
::
MARKET_PLACE_MERCHANT
)
if
(
LLMarketplaceData
::
instance
().
getSLMStatus
()
!=
MarketplaceStatusCodes
::
MARKET_PLACE_MERCHANT
)
{
{
...
@@ -362,7 +362,7 @@ void LLFloaterMarketplaceListings::setup()
...
@@ -362,7 +362,7 @@ void LLFloaterMarketplaceListings::setup()
LL_ERRS
(
"SLM"
)
<<
"Inventory problem: failure to create the marketplace listings folder for a merchant!"
<<
LL_ENDL
;
LL_ERRS
(
"SLM"
)
<<
"Inventory problem: failure to create the marketplace listings folder for a merchant!"
<<
LL_ENDL
;
return
;
return
;
}
}
// No longer need to observe new category creation
// No longer need to observe new category creation
if
(
mCategoryAddedObserver
&&
gInventory
.
containsObserver
(
mCategoryAddedObserver
))
if
(
mCategoryAddedObserver
&&
gInventory
.
containsObserver
(
mCategoryAddedObserver
))
{
{
...
@@ -377,18 +377,27 @@ void LLFloaterMarketplaceListings::setup()
...
@@ -377,18 +377,27 @@ void LLFloaterMarketplaceListings::setup()
LL_WARNS
(
"SLM"
)
<<
"Inventory warning: Marketplace listings folder already set"
<<
LL_ENDL
;
LL_WARNS
(
"SLM"
)
<<
"Inventory warning: Marketplace listings folder already set"
<<
LL_ENDL
;
return
;
return
;
}
}
mRootFolderId
=
marketplacelistings_id
;
mRootFolderId
=
marketplacelistings_id
;
}
void
LLFloaterMarketplaceListings
::
setPanels
()
{
if
(
mRootFolderId
.
isNull
())
{
return
;
}
// Consolidate Marketplace listings
// Consolidate Marketplace listings
// We shouldn't have to do that but with a client/server system relying on a "well known folder" convention,
// We shouldn't have to do that but with a client/server system relying on a "well known folder" convention,
// things get messy and conventions get broken down eventually
// things get messy and conventions get broken down eventually
gInventory
.
consolidateForType
(
m
arketplacelistings_i
d
,
LLFolderType
::
FT_MARKETPLACE_LISTINGS
);
gInventory
.
consolidateForType
(
m
RootFolderI
d
,
LLFolderType
::
FT_MARKETPLACE_LISTINGS
);
// Now that we do have a non NULL root, we can build the inventory panels
// Now that we do have a non NULL root, we can build the inventory panels
mPanelListings
->
buildAllPanels
();
mPanelListings
->
buildAllPanels
();
// Create observer for marketplace listings modifications
// Create observer for marketplace listings modifications
if
(
!
mCategoriesObserver
&&
mRootFolderId
.
notNull
()
)
if
(
!
mCategoriesObserver
)
{
{
mCategoriesObserver
=
new
LLInventoryCategoriesObserver
();
mCategoriesObserver
=
new
LLInventoryCategoriesObserver
();
llassert
(
mCategoriesObserver
);
llassert
(
mCategoriesObserver
);
...
@@ -433,7 +442,7 @@ void LLFloaterMarketplaceListings::updateView()
...
@@ -433,7 +442,7 @@ void LLFloaterMarketplaceListings::updateView()
// Get or create the root folder if we are a merchant and it hasn't been done already
// Get or create the root folder if we are a merchant and it hasn't been done already
if
(
mRootFolderId
.
isNull
()
&&
(
mkt_status
==
MarketplaceStatusCodes
::
MARKET_PLACE_MERCHANT
))
if
(
mRootFolderId
.
isNull
()
&&
(
mkt_status
==
MarketplaceStatusCodes
::
MARKET_PLACE_MERCHANT
))
{
{
set
up
();
set
RootFolder
();
}
}
// Update the bottom initializing status and progress dial
// Update the bottom initializing status and progress dial
...
@@ -454,9 +463,7 @@ void LLFloaterMarketplaceListings::updateView()
...
@@ -454,9 +463,7 @@ void LLFloaterMarketplaceListings::updateView()
if
(
mFirstViewListings
)
if
(
mFirstViewListings
)
{
{
// We need to rebuild the tabs cleanly the first time we make them visible
// We need to rebuild the tabs cleanly the first time we make them visible
// setup() does it if the root is nixed first
setPanels
();
mRootFolderId
.
setNull
();
setup
();
mFirstViewListings
=
false
;
mFirstViewListings
=
false
;
}
}
mPanelListings
->
setVisible
(
TRUE
);
mPanelListings
->
setVisible
(
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloatermarketplacelistings.h
+
2
−
1
View file @
4fd175bc
...
@@ -103,7 +103,8 @@ class LLFloaterMarketplaceListings : public LLFloater
...
@@ -103,7 +103,8 @@ class LLFloaterMarketplaceListings : public LLFloater
void
onMouseLeave
(
S32
x
,
S32
y
,
MASK
mask
);
void
onMouseLeave
(
S32
x
,
S32
y
,
MASK
mask
);
protected:
protected:
void
setup
();
void
setRootFolder
();
void
setPanels
();
void
fetchContents
();
void
fetchContents
();
void
setStatusString
(
const
std
::
string
&
statusString
);
void
setStatusString
(
const
std
::
string
&
statusString
);
...
...
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