aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:07 -0500
committerJacek Antonelli2008-08-15 23:45:07 -0500
commit8465910c79b8e746e04fd581cca2d60399e569b9 (patch)
treef43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/newview/llpreview.cpp
parentSecond Life viewer sources 1.18.2.1 (diff)
downloadmeta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to 'linden/indra/newview/llpreview.cpp')
-rw-r--r--linden/indra/newview/llpreview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreview.cpp b/linden/indra/newview/llpreview.cpp
index 751a90f..4993852 100644
--- a/linden/indra/newview/llpreview.cpp
+++ b/linden/indra/newview/llpreview.cpp
@@ -300,12 +300,18 @@ bool LLPreview::save( const LLUUID& item_uuid, LLPointer<LLInventoryItem>* itemp
300} 300}
301 301
302// static 302// static
303void LLPreview::hide(const LLUUID& item_uuid) 303void LLPreview::hide(const LLUUID& item_uuid, BOOL no_saving /* = FALSE */ )
304{ 304{
305 preview_map_t::iterator found_it = LLPreview::sInstances.find(item_uuid); 305 preview_map_t::iterator found_it = LLPreview::sInstances.find(item_uuid);
306 if(found_it != LLPreview::sInstances.end()) 306 if(found_it != LLPreview::sInstances.end())
307 { 307 {
308 LLPreview* instance = found_it->second; 308 LLPreview* instance = found_it->second;
309
310 if ( no_saving )
311 {
312 instance->mForceClose = TRUE;
313 }
314
309 instance->close(); 315 instance->close();
310 } 316 }
311} 317}