diff options
Diffstat (limited to 'linden/indra/newview/llviewermenufile.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenufile.cpp | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/linden/indra/newview/llviewermenufile.cpp b/linden/indra/newview/llviewermenufile.cpp index 5dd760e..c998ba6 100644 --- a/linden/indra/newview/llviewermenufile.cpp +++ b/linden/indra/newview/llviewermenufile.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -349,7 +349,8 @@ class LLFileEnableCloseWindow : public view_listener_t | |||
349 | { | 349 | { |
350 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 350 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
351 | { | 351 | { |
352 | bool new_value = gFloaterView->getFocusedFloater() != NULL || gSnapshotFloaterView->getFocusedFloater() != NULL; | 352 | bool new_value = NULL != LLFloater::getClosableFloaterFromFocus(); |
353 | |||
353 | // horrendously opaque, this code | 354 | // horrendously opaque, this code |
354 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 355 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
355 | return true; | 356 | return true; |
@@ -503,7 +504,7 @@ void handle_compress_image(void*) | |||
503 | } | 504 | } |
504 | else | 505 | else |
505 | { | 506 | { |
506 | llinfos << "Compression failed: " << LLImageBase::getLastError() << llendl; | 507 | llinfos << "Compression failed: " << LLImage::getLastError() << llendl; |
507 | } | 508 | } |
508 | 509 | ||
509 | infile = picker.getNextFile(); | 510 | infile = picker.getNextFile(); |
@@ -554,9 +555,9 @@ void upload_new_resource(const std::string& src_filename, std::string name, | |||
554 | IMG_CODEC_BMP )) | 555 | IMG_CODEC_BMP )) |
555 | { | 556 | { |
556 | error_message = llformat( "Problem with file %s:\n\n%s\n", | 557 | error_message = llformat( "Problem with file %s:\n\n%s\n", |
557 | src_filename.c_str(), LLImageBase::getLastError().c_str()); | 558 | src_filename.c_str(), LLImage::getLastError().c_str()); |
558 | args["[FILE]"] = src_filename; | 559 | args["[FILE]"] = src_filename; |
559 | args["[ERROR]"] = LLImageBase::getLastError(); | 560 | args["[ERROR]"] = LLImage::getLastError(); |
560 | upload_error(error_message, "ProblemWithFile", filename, args); | 561 | upload_error(error_message, "ProblemWithFile", filename, args); |
561 | return; | 562 | return; |
562 | } | 563 | } |
@@ -569,9 +570,9 @@ void upload_new_resource(const std::string& src_filename, std::string name, | |||
569 | IMG_CODEC_TGA )) | 570 | IMG_CODEC_TGA )) |
570 | { | 571 | { |
571 | error_message = llformat("Problem with file %s:\n\n%s\n", | 572 | error_message = llformat("Problem with file %s:\n\n%s\n", |
572 | src_filename.c_str(), LLImageBase::getLastError().c_str()); | 573 | src_filename.c_str(), LLImage::getLastError().c_str()); |
573 | args["[FILE]"] = src_filename; | 574 | args["[FILE]"] = src_filename; |
574 | args["[ERROR]"] = LLImageBase::getLastError(); | 575 | args["[ERROR]"] = LLImage::getLastError(); |
575 | upload_error(error_message, "ProblemWithFile", filename, args); | 576 | upload_error(error_message, "ProblemWithFile", filename, args); |
576 | return; | 577 | return; |
577 | } | 578 | } |
@@ -584,9 +585,9 @@ void upload_new_resource(const std::string& src_filename, std::string name, | |||
584 | IMG_CODEC_JPEG )) | 585 | IMG_CODEC_JPEG )) |
585 | { | 586 | { |
586 | error_message = llformat("Problem with file %s:\n\n%s\n", | 587 | error_message = llformat("Problem with file %s:\n\n%s\n", |
587 | src_filename.c_str(), LLImageBase::getLastError().c_str()); | 588 | src_filename.c_str(), LLImage::getLastError().c_str()); |
588 | args["[FILE]"] = src_filename; | 589 | args["[FILE]"] = src_filename; |
589 | args["[ERROR]"] = LLImageBase::getLastError(); | 590 | args["[ERROR]"] = LLImage::getLastError(); |
590 | upload_error(error_message, "ProblemWithFile", filename, args); | 591 | upload_error(error_message, "ProblemWithFile", filename, args); |
591 | return; | 592 | return; |
592 | } | 593 | } |
@@ -599,9 +600,9 @@ void upload_new_resource(const std::string& src_filename, std::string name, | |||
599 | IMG_CODEC_PNG )) | 600 | IMG_CODEC_PNG )) |
600 | { | 601 | { |
601 | error_message = llformat("Problem with file %s:\n\n%s\n", | 602 | error_message = llformat("Problem with file %s:\n\n%s\n", |
602 | src_filename.c_str(), LLImageBase::getLastError().c_str()); | 603 | src_filename.c_str(), LLImage::getLastError().c_str()); |
603 | args["[FILE]"] = src_filename; | 604 | args["[FILE]"] = src_filename; |
604 | args["[ERROR]"] = LLImageBase::getLastError(); | 605 | args["[ERROR]"] = LLImage::getLastError(); |
605 | upload_error(error_message, "ProblemWithFile", filename, args); | 606 | upload_error(error_message, "ProblemWithFile", filename, args); |
606 | return; | 607 | return; |
607 | } | 608 | } |
@@ -930,6 +931,11 @@ void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_ty | |||
930 | LLAssetStorage::LLStoreAssetCallback callback, | 931 | LLAssetStorage::LLStoreAssetCallback callback, |
931 | void *userdata) | 932 | void *userdata) |
932 | { | 933 | { |
934 | if(gDisconnected) | ||
935 | { | ||
936 | return ; | ||
937 | } | ||
938 | |||
933 | LLAssetID uuid = tid.makeAssetID(gAgent.getSecureSessionID()); | 939 | LLAssetID uuid = tid.makeAssetID(gAgent.getSecureSessionID()); |
934 | 940 | ||
935 | if( LLAssetType::AT_SOUND == asset_type ) | 941 | if( LLAssetType::AT_SOUND == asset_type ) |