From 6baafbd549d7a0bddacb5a30b7d9336c5afbcbaf Mon Sep 17 00:00:00 2001 From: seth_productengine Date: Thu, 30 Jun 2011 15:01:47 +0300 Subject: SH-1725 WIP Fixed displaying upload permissions warning --- indra/newview/llfloatermodelwizard.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/indra/newview/llfloatermodelwizard.cpp b/indra/newview/llfloatermodelwizard.cpp index 4482d02ca3..a3db22dbc6 100644 --- a/indra/newview/llfloatermodelwizard.cpp +++ b/indra/newview/llfloatermodelwizard.cpp @@ -481,11 +481,12 @@ void LLFloaterModelWizard::initDecompControls() void LLFloaterModelWizard::onPermissionsReceived(const LLSD& result) { std::string upload_status = result["mesh_upload_status"].asString(); - mHasUploadPerm = "valid" == upload_status; + // BAP HACK: handle "" for case that MeshUploadFlag cap is broken. + mHasUploadPerm = (("" == upload_status) || ("valid" == upload_status)); getChildView("upload")->setEnabled(mHasUploadPerm); - getChildView("warning_label")->setVisible(mHasUploadPerm); - getChildView("warning_text")->setVisible(mHasUploadPerm); + getChildView("warning_label")->setVisible(!mHasUploadPerm); + getChildView("warning_text")->setVisible(!mHasUploadPerm); } /*virtual*/ -- cgit v1.2.3