aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-05-10 14:41:08 -0700
committerMcCabe Maxsted2011-06-08 22:02:35 -0700
commit24f857c0eee78243549690b8659b09ec27cae872 (patch)
treeeaa033c55c46cbbf62d34543fda7cb0261453574 /linden/indra/newview
parentNow that the cache persists, start background fetching on login. We begin wit... (diff)
downloadmeta-impy-24f857c0eee78243549690b8659b09ec27cae872.zip
meta-impy-24f857c0eee78243549690b8659b09ec27cae872.tar.gz
meta-impy-24f857c0eee78243549690b8659b09ec27cae872.tar.bz2
meta-impy-24f857c0eee78243549690b8659b09ec27cae872.tar.xz
Fixed inventory not background fetching on startup when inventory window was open on quit
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llstartup.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index a2ed9fc..922cfa3 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -2588,19 +2588,6 @@ bool idle_startup()
2588 llinfos << "Requesting Agent Data" << llendl; 2588 llinfos << "Requesting Agent Data" << llendl;
2589 gAgent.sendAgentDataUpdateRequest(); 2589 gAgent.sendAgentDataUpdateRequest();
2590 2590
2591 bool shown_at_exit = gSavedSettings.getBOOL("ShowInventory");
2592
2593 // Create the inventory views
2594 llinfos << "Creating Inventory Views" << llendl;
2595 LLInventoryView::showAgentInventory();
2596 llinfos << "Inventory Views Created" << llendl;
2597
2598 // Hide the inventory if it wasn't shown at exit
2599 if(!shown_at_exit)
2600 {
2601 LLInventoryView::toggleVisibility(NULL);
2602 }
2603
2604// [RLVa:KB] - Checked: 2009-11-27 (RLVa-1.1.0f) | Added: RLVa-1.1.0f 2591// [RLVa:KB] - Checked: 2009-11-27 (RLVa-1.1.0f) | Added: RLVa-1.1.0f
2605 if (rlv_handler_t::isEnabled()) 2592 if (rlv_handler_t::isEnabled())
2606 { 2593 {
@@ -2991,6 +2978,17 @@ bool idle_startup()
2991 // Clean up the userauth stuff. 2978 // Clean up the userauth stuff.
2992 LLUserAuth::getInstance()->reset(); 2979 LLUserAuth::getInstance()->reset();
2993 2980
2981 // Show the inventory if it was shown at exit
2982 // Don't do this before here or we screw up inv loading -- MC
2983 if (gSavedSettings.getBOOL("ShowInventory"))
2984 {
2985 // Create the inventory views
2986 llinfos << "Creating Inventory Views" << llendl;
2987 LLInventoryView::showAgentInventory();
2988 llinfos << "Inventory Views Created" << llendl;
2989 //LLInventoryView::toggleVisibility(NULL);
2990 }
2991
2994 LLStartUp::setStartupState( STATE_STARTED ); 2992 LLStartUp::setStartupState( STATE_STARTED );
2995 LLStartUp::setStartedOnce(true); 2993 LLStartUp::setStartedOnce(true);
2996 LLStartUp::setLoginFailed(false); 2994 LLStartUp::setLoginFailed(false);