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
9177aea5
Commit
9177aea5
authored
10 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
DD-289 : Fix crash when dropping first item in marketplace listings
parent
b6bda882
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llfloatermarketplacelistings.cpp
+9
-3
9 additions, 3 deletions
indra/newview/llfloatermarketplacelistings.cpp
indra/newview/llfloatermarketplacelistings.h
+1
-1
1 addition, 1 deletion
indra/newview/llfloatermarketplacelistings.h
with
10 additions
and
4 deletions
indra/newview/llfloatermarketplacelistings.cpp
+
9
−
3
View file @
9177aea5
...
...
@@ -265,7 +265,7 @@ LLFloaterMarketplaceListings::LLFloaterMarketplaceListings(const LLSD& key)
,
mInventoryText
(
NULL
)
,
mInventoryTitle
(
NULL
)
,
mPanelListings
(
NULL
)
,
m
FirstViewListings
(
tru
e
)
,
m
PanelListingsSet
(
fals
e
)
{
}
...
...
@@ -401,6 +401,9 @@ void LLFloaterMarketplaceListings::setPanels()
// Get the content of the marketplace listings folder
fetchContents
();
// Flag that this is done
mPanelListingsSet
=
true
;
}
void
LLFloaterMarketplaceListings
::
initializeMarketPlace
()
...
...
@@ -454,11 +457,10 @@ void LLFloaterMarketplaceListings::updateView()
// Update the middle portion : tabs or messages
if
(
getFolderCount
()
>
0
)
{
if
(
mFirstView
Listings
)
if
(
!
mPanel
Listings
Set
)
{
// We need to rebuild the tabs cleanly the first time we make them visible
setPanels
();
mFirstViewListings
=
false
;
}
mPanelListings
->
setVisible
(
TRUE
);
mInventoryPlaceholder
->
setVisible
(
FALSE
);
...
...
@@ -538,6 +540,10 @@ BOOL LLFloaterMarketplaceListings::handleDragAndDrop(S32 x, S32 y, MASK mask, BO
{
if
(
!
mPanelListings
->
getVisible
()
&&
mRootFolderId
.
notNull
())
{
if
(
!
mPanelListingsSet
)
{
setPanels
();
}
LLFolderView
*
root_folder
=
mPanelListings
->
getRootFolder
();
handled
=
root_folder
->
handleDragAndDropToThisFolder
(
mask
,
drop
,
cargo_type
,
cargo_data
,
accept
,
tooltip_msg
);
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloatermarketplacelistings.h
+
1
−
1
View file @
9177aea5
...
...
@@ -132,7 +132,7 @@ class LLFloaterMarketplaceListings : public LLFloater
LLUUID
mRootFolderId
;
LLPanelMarketplaceListings
*
mPanelListings
;
bool
m
FirstView
Listings
;
bool
m
Panel
Listings
Set
;
};
//-----------------------------------------------------------------------------
...
...
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