summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-03-14 19:07:16 +0100
committerCho <cho@lindenlab.com>2014-03-14 19:07:16 +0100
commit976f09ffc6b2943b4423cc1816d2ec57b7c98f3f (patch)
tree6ade121f73f76f3af0ec81c461a990122e55b043 /indra
parentde73a3bac4470fc9339568ad1cf4c2af3827c8b8 (diff)
Made location checkbox disabled when caption is empty for ACME-1375
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloaterfacebook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llfloaterfacebook.cpp b/indra/newview/llfloaterfacebook.cpp
index 0388f4dca8..fccb2799dc 100644
--- a/indra/newview/llfloaterfacebook.cpp
+++ b/indra/newview/llfloaterfacebook.cpp
@@ -281,8 +281,8 @@ void LLFacebookPhotoPanel::draw()
mFilterComboBox->setEnabled(no_ongoing_connection);
mRefreshBtn->setEnabled(no_ongoing_connection);
mBtnPreview->setEnabled(no_ongoing_connection);
- mLocationCheckbox->setEnabled(no_ongoing_connection);
-
+ mLocationCheckbox->setEnabled(no_ongoing_connection && !mCaptionTextBox->getValue().asString().empty());
+
// Reassign the preview floater if we have the focus and the preview exists
if (hasFocus() && isPreviewVisible())
{
@@ -452,7 +452,7 @@ void LLFacebookPhotoPanel::sendPhoto()
std::string caption = mCaptionTextBox->getValue().asString();
// Add the location if required
- bool add_location = mLocationCheckbox->getValue().asBoolean();
+ bool add_location = (mLocationCheckbox->getEnabled() && mLocationCheckbox->getValue().asBoolean());
if (add_location)
{
// Get the SLURL for the location