summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-06-25 13:53:38 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-06-25 13:53:38 -0700
commite92e5a3d5337204c10a8417bb0ad480d591b4b90 (patch)
tree4da314f39163d95a30c5d546e3681dce12bd8137
parent7b79b455d0b3b60669bbe8978732fe7db62d678b (diff)
ACME-592 Clicking 'Post' should close the Facebook floater
-rw-r--r--indra/newview/llfloatersocial.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp
index 23e3d35c22..9b27024eed 100644
--- a/indra/newview/llfloatersocial.cpp
+++ b/indra/newview/llfloatersocial.cpp
@@ -380,6 +380,13 @@ void LLSocialPhotoPanel::onSend()
LLFacebookConnect::instance().sharePhoto(previewp->getFormattedImage(), caption);
updateControls();
+
+ // Close the floater once "Post" has been pushed
+ LLFloater* floater = getParentByType<LLFloater>();
+ if (floater)
+ {
+ floater->closeFloater();
+ }
}