Address Deltek's concern that the Open Attachment button wasn't changing text to just say save when the object is not the openable type.

This commit is contained in:
Inusaito Sayori
2014-08-08 14:52:52 -04:00
parent 90c5219be9
commit 3b31fe91a6

View File

@@ -53,6 +53,7 @@
#include "llscrolllistctrl.h"
#include "llscrolllistitem.h"
#include "lltextbox.h"
#include "lltrans.h"
#include "roles_constants.h"
#include "llviewerwindow.h"
@@ -511,6 +512,7 @@ void LLPanelGroupNotices::onSelectNotice()
lldebugs << "Item " << item->getUUID() << " selected." << llendl;
}
bool is_openable(LLAssetType::EType type);
void LLPanelGroupNotices::showNotice(const std::string& subject,
const std::string& message,
const bool& has_inventory,
@@ -549,6 +551,7 @@ void LLPanelGroupNotices::showNotice(const std::string& subject,
mViewInventoryName->setText(ss.str());
mBtnOpenAttachment->setEnabled(TRUE);
mBtnOpenAttachment->setLabel(LLTrans::getString(is_openable(inventory_offer->mType) ? "GroupNotifyOpenAttachment" : "GroupNotifySaveAttachment"));
}
else
{