aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llfloaterworldmap.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llfloaterworldmap.cpp')
-rw-r--r--linden/indra/newview/llfloaterworldmap.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp
index 237563f..bdb7f09 100644
--- a/linden/indra/newview/llfloaterworldmap.cpp
+++ b/linden/indra/newview/llfloaterworldmap.cpp
@@ -3,6 +3,8 @@
3 * @author James Cook, Tom Yedwab 3 * @author James Cook, Tom Yedwab
4 * @brief LLFloaterWorldMap class implementation 4 * @brief LLFloaterWorldMap class implementation
5 * 5 *
6 * $LicenseInfo:firstyear=2003&license=viewergpl$
7 *
6 * Copyright (c) 2003-2007, Linden Research, Inc. 8 * Copyright (c) 2003-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30/* 33/*
@@ -259,7 +262,7 @@ BOOL LLFloaterWorldMap::postBuild()
259 mCurZoomVal = log(gMapScale)/log(2.f); 262 mCurZoomVal = log(gMapScale)/log(2.f);
260 childSetValue("zoom slider", gMapScale); 263 childSetValue("zoom slider", gMapScale);
261 264
262 setDefaultBtn(""); 265 setDefaultBtn(NULL);
263 266
264 if ( gAgent.mAccess <= SIM_ACCESS_PG ) 267 if ( gAgent.mAccess <= SIM_ACCESS_PG )
265 { 268 {
@@ -295,20 +298,6 @@ void LLFloaterWorldMap::onClose(bool app_quitting)
295 setVisible(FALSE); 298 setVisible(FALSE);
296} 299}
297 300
298// Allow us to download landmarks quickly when map is shown
299class LLLandmarkFetchDescendentsObserver : public LLInventoryFetchDescendentsObserver
300{
301public:
302 virtual void done()
303 {
304 // We need to find landmarks in all folders, so get the main
305 // background download going.
306 gInventory.startBackgroundFetch();
307 gInventory.removeObserver(this);
308 delete this;
309 }
310};
311
312// static 301// static
313void LLFloaterWorldMap::show(void*, BOOL center_on_target) 302void LLFloaterWorldMap::show(void*, BOOL center_on_target)
314{ 303{
@@ -348,7 +337,6 @@ void LLFloaterWorldMap::show(void*, BOOL center_on_target)
348 LLFirstUse::useMap(); 337 LLFirstUse::useMap();
349 338
350 // Start speculative download of landmarks 339 // Start speculative download of landmarks
351 LLInventoryFetchDescendentsObserver::folder_ref_t folders;
352 LLUUID landmark_folder_id = gInventory.findCategoryUUIDForType(LLAssetType::AT_LANDMARK); 340 LLUUID landmark_folder_id = gInventory.findCategoryUUIDForType(LLAssetType::AT_LANDMARK);
353 gInventory.startBackgroundFetch(landmark_folder_id); 341 gInventory.startBackgroundFetch(landmark_folder_id);
354 342
@@ -1223,7 +1211,7 @@ void LLFloaterWorldMap::updateSearchEnabled( LLUICtrl* ctrl, void* userdata )
1223 } 1211 }
1224 else 1212 else
1225 { 1213 {
1226 self->setDefaultBtn(""); 1214 self->setDefaultBtn(NULL);
1227 } 1215 }
1228} 1216}
1229 1217